C# Class Consolation.Console

A console to display Unity's debug logs in-game.
Inheritance: UnityEngine.MonoBehaviour
Show file Open project: gamemachine/gamemachine

Public Properties

Property Type Description
shakeAcceleration float
shakeToOpen bool
toggleKey KeyCode

Public Methods

Method Description
ConsoleWindow ( int windowID ) : void

A window that displayss the recorded logs.

HandleLog ( string message, string stackTrace, LogType type ) : void

Records a log from the log callback.

OnDisable ( ) : void
OnEnable ( ) : void
OnGUI ( ) : void
Update ( ) : void

Method Details

ConsoleWindow() public method

A window that displayss the recorded logs.
public ConsoleWindow ( int windowID ) : void
windowID int Window ID.
return void

HandleLog() public method

Records a log from the log callback.
public HandleLog ( string message, string stackTrace, LogType type ) : void
message string Message.
stackTrace string Trace of where the message came from.
type LogType Type of message (error, exception, warning, assert).
return void

OnDisable() public method

public OnDisable ( ) : void
return void

OnEnable() public method

public OnEnable ( ) : void
return void

OnGUI() public method

public OnGUI ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

shakeAcceleration public property

The (squared) acceleration above which the window should open.
public float shakeAcceleration
return float

shakeToOpen public property

Whether to open the window by shaking the device (mobile-only).
public bool shakeToOpen
return bool

toggleKey public property

The hotkey to show and hide the console window.
public KeyCode toggleKey
return KeyCode