C# Class Consolation.Console

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

Méthodes publiques

Свойство Type Description
shakeAcceleration float
shakeToOpen bool
toggleKey KeyCode

Méthodes publiques

Méthode 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 méthode

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

HandleLog() public méthode

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).
Résultat void

OnDisable() public méthode

public OnDisable ( ) : void
Résultat void

OnEnable() public méthode

public OnEnable ( ) : void
Résultat void

OnGUI() public méthode

public OnGUI ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

shakeAcceleration public_oe property

The (squared) acceleration above which the window should open.
public float shakeAcceleration
Résultat float

shakeToOpen public_oe property

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

toggleKey public_oe property

The hotkey to show and hide the console window.
public KeyCode toggleKey
Résultat KeyCode