Class DebugConsoleController
- Namespace
- CodeBase.DebugConsole
- Assembly
- 4Experience.Codebase.DebugConsole.dll
public class DebugConsoleController : ExtendedMonoBehaviour
- Inheritance
-
Object
Component
Behaviour
MonoBehaviour
DebugConsoleController
- Extension Methods
-
Properties
ConsoleDisplay
private Canvas ConsoleDisplay { get; set; }
Property Value
- Canvas
ConsoleSettings
private DebugConsoleSettings ConsoleSettings { get; set; }
Property Value
- DebugConsoleSettings
ErrorsCollection
private LogCollection ErrorsCollection { get; set; }
Property Value
- LogCollection
private Scrollbar ListOfLogsScrollbar { get; set; }
Property Value
- Scrollbar
LogCallbackDetailsCollection
private Queue<DebugConsoleController.LogCallbackDetails> LogCallbackDetailsCollection { get; set; }
Property Value
- Queue<DebugConsoleController.LogCallbackDetails>
MessagesCollection
private LogCollection MessagesCollection { get; set; }
Property Value
- LogCollection
ParentOfLogs
private Transform ParentOfLogs { get; set; }
Property Value
- Transform
TraceContent
private RectTransform TraceContent { get; set; }
Property Value
- RectTransform
TraceText
private TextMeshProUGUI TraceText { get; set; }
Property Value
- TextMeshProUGUI
WarningsCollection
private LogCollection WarningsCollection { get; set; }
Property Value
- LogCollection
Methods
AttachToEvents()
private void AttachToEvents()
Awake()
protected virtual void Awake()
private bool CanEnableVRInput()
Returns
- bool
private bool CanExecuteKeyboardInput()
Returns
- bool
private bool CanExecuteTouchscreenInput()
Returns
- bool
CaptureNewLogDetails(string, string, LogType)
private void CaptureNewLogDetails(string logString, string stackTrace, LogType type)
Parameters
logString string
stackTrace string
type LogType
Clear()
CreateNewLog(LogCallbackDetails)
private void CreateNewLog(DebugConsoleController.LogCallbackDetails logCallbackDetails)
Parameters
logCallbackDetails DebugConsoleController.LogCallbackDetails
CreateNewLogs()
private void CreateNewLogs()
DetachFromEvents()
private void DetachFromEvents()
ExecuteVRInput(CallbackContext)
private void ExecuteVRInput(InputAction.CallbackContext obj)
Parameters
obj InputAction.CallbackContext
private void HandleInput()
HideErrors()
HideMessages()
public void HideMessages()
HideWarnings()
public void HideWarnings()
OnDisable()
protected virtual void OnDisable()
OnEnable()
protected virtual void OnEnable()
Pause()
RefreshTraceLogLayout()
private void RefreshTraceLogLayout()
private void ScrollDown()
SetDisplayTraceText(string)
public void SetDisplayTraceText(string stackTrace)
Parameters
stackTrace string
SetLogCollectionVisability(LogCollection, bool)
private void SetLogCollectionVisability(LogCollection logCollection, bool isLogCollectionVisible)
Parameters
logCollection LogCollection
isLogCollectionVisible bool
private void SetupVRInput()
ShowErrors()
ShowMessages()
public void ShowMessages()
ShowWarnings()
public void ShowWarnings()
ToggleConsoleDisplay()
private void ToggleConsoleDisplay()
private bool TryExecuteInputFromKeyboard()
Returns
- bool
private bool TryToExecuteInputFromTouchscreen()
Returns
- bool
TurnDebugConsoleOff()
public void TurnDebugConsoleOff()
Unpause()
Update()
protected virtual void Update()