Class GUIListener
A singleton class for registering and executing callbacks in Unity's OnGUI. Since simply including the OnGUI method in a UnityEngine.MonoBehaviour will cause undesirable heap allocations, this class is meant to collect those calls into one place, which can be disabled in live builds or even lazily instantiated for rendering debug information only when necessary.
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
GUIListener
Inherited Members
Namespace: Atlas
Assembly: Atlas.Runtime.dll
Syntax
public sealed class GUIListener : SingletonBehavior<GUIListener>
Events
| Improve this Doc View SourceGUIRenderEvent
Event that fires every OnGUI update cycle
Declaration
public event Action GUIRenderEvent
Event Type
Type | Description |
---|---|
System.Action |