Component to display the console (debug logs) in-game using a Text component
More...
|
void | ToggleShow () |
| Inverts the "show" state of the console. If it was being displayed, it will no longer be. If it was not, it will be. More...
|
|
void | SetShow (bool newValue) |
| Displays or not the console in-game More...
|
|
void | Clear () |
| Clears the console and starts a new file for the saved logs. More...
|
|
|
Text | textUI |
| The Text component that is going to be updated to display all the log messages. More...
|
|
KeyCode | toggleKey = KeyCode.Space |
| Key to toggle on-off the in-game console. More...
|
|
bool | saveToFile = false |
| Should the logs be saved to a file in the desktop? More...
|
|
int | maxDisplayedChars = 700 |
| Maximum amount of characters displayed by the console. More...
|
|
|
override void | UpdateVisuals () |
| Updates the visuals of the console More...
|
|
void | OnEnable () |
| Registers the console to handle any log messages received and updates the visuals calling UpdateVisuals. More...
|
|
void | OnDisable () |
| Unregisters the console from the handling of the any log messages. More...
|
|
void | Awake () |
| Updates the console's visuals calling UpdateVisuals More...
|
|
|
void | Update () |
| Handles the toggling ON and OFF of the console More...
|
|
void | Log (string logString, string stackTrace, LogType type) |
| Handles the logging of any log messages More...
|
|
|
string | filename = "" |
| The filename that will store the logs of the console. More...
|
|
Component to display the console (debug logs) in-game using a Text component
Definition at line 10 of file ConsoleTextUI.cs.
◆ Awake()
void UnityEngine.Console.Awake |
( |
| ) |
|
|
protectedinherited |
◆ Clear()
void UnityEngine.Console.Clear |
( |
| ) |
|
|
inherited |
◆ Log()
void UnityEngine.Console.Log |
( |
string |
logString, |
|
|
string |
stackTrace, |
|
|
LogType |
type |
|
) |
| |
|
privateinherited |
◆ OnDisable()
void UnityEngine.Console.OnDisable |
( |
| ) |
|
|
protectedinherited |
◆ OnEnable()
void UnityEngine.Console.OnEnable |
( |
| ) |
|
|
protectedinherited |
Registers the console to handle any log messages received and updates the visuals calling UpdateVisuals.
Definition at line 53 of file ConsoleInGame/Console.cs.
◆ SetShow()
void UnityEngine.Console.SetShow |
( |
bool |
newValue | ) |
|
|
inherited |
Displays or not the console in-game
- Parameters
-
newValue | Weather the console should be displayed in-game or not. |
Definition at line 75 of file ConsoleInGame/Console.cs.
◆ ToggleShow()
void UnityEngine.Console.ToggleShow |
( |
| ) |
|
|
inherited |
Inverts the "show" state of the console. If it was being displayed, it will no longer be. If it was not, it will be.
Definition at line 66 of file ConsoleInGame/Console.cs.
◆ Update()
void UnityEngine.Console.Update |
( |
| ) |
|
|
privateinherited |
◆ UpdateVisuals()
override void UnityEngine.ConsoleTextUI.UpdateVisuals |
( |
| ) |
|
|
protectedvirtual |
◆ enableKeyToggle
bool UnityEngine.Console.enableKeyToggle = true |
|
protectedinherited |
◆ filename
string UnityEngine.Console.filename = "" |
|
privateinherited |
◆ fullLog
string UnityEngine.Console.fullLog = "" |
|
packageinherited |
◆ maxDisplayedChars
int UnityEngine.Console.maxDisplayedChars = 700 |
|
inherited |
◆ saveToFile
bool UnityEngine.Console.saveToFile = false |
|
inherited |
◆ show
bool UnityEngine.Console.show = true |
|
protectedinherited |
◆ textUI
Text UnityEngine.ConsoleTextUI.textUI |
The Text component that is going to be updated to display all the log messages.
Definition at line 15 of file ConsoleTextUI.cs.
◆ toggleKey
KeyCode UnityEngine.Console.toggleKey = KeyCode.Space |
|
inherited |
The documentation for this class was generated from the following file: