Click or drag to resize

Console Class

In-game Lua console. Press tilde (~) on PC or flick-down on mobile to show.
Inheritance Hierarchy
SystemObject
  KitConsole

Namespace:  Kit
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public static class Console
Request Example View Source

The Console type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberIsVisible
Get whether the Console is visible or show/hide it.
Top
Methods
  NameDescription
Public methodStatic memberClearCommand
Clear the command input field.
Public methodStatic memberClearHistory
Clear Console history.
Public methodStatic memberClearLog
Clear the Console log.
Public methodStatic memberDestroy
Destroy the Console.
Public methodStatic memberExecute
Execute a Lua command or expression on the Console.
Public methodStatic memberHide
Hide the Console.
Public methodStatic memberInitialize
Initialize the Console.
Public methodStatic memberList
List all members of a class on the Console.
Public methodStatic memberLog(Object)
Log an object on the Console.
Public methodStatic memberLog(String)
Log a line on the Console.
Public methodStatic memberScrollToBottom
Scroll the Console log to the bottom.
Public methodStatic memberScrollToTop
Scroll the Console log to the top.
Public methodStatic memberShow
Show the Console.
Public methodStatic memberToggle
Show if not visible, and vice versa.
Top
Fields
  NameDescription
Public fieldStatic memberCommandPrefix
Text to display for distinguishing typed content.
Public fieldStatic memberDepth
How deep to go when logging object contents.
Public fieldStatic memberGCInterval
Garbage collector interval for the Lua environment of the Console.
Public fieldStatic memberLength
Maximum length of the log in characters.
Public fieldStatic memberLogBuilder
StringBuilder for the entire log.
Public fieldStatic memberNullString
Text to display for objects.
Public fieldStatic memberPrefab
Prefab location to the Console UI.
Top
See Also

Reference