A class in Root.Township, the global namespace.
Hidden object that lets non-scene code draw gizmos: register a callback and it is run from OnDrawGizmos.
Constructors
| Member | What it is |
|---|
EditorWindowGizmosDrawer() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
Events
1 private and internal event
| Member | What it is |
|---|
private static event Action gizmosCallback | The registered gizmo callbacks. |
Methods
| Member | What it is |
|---|
static void DeregisterCallback(Action callback) | Removes a gizmo callback. |
static void RegisterCallback(Action callback) | Adds a callback once, creating the hidden drawer object if needed. |
1 private and internal method
| Member | What it is |
|---|
private void OnDrawGizmos() | Runs the callbacks, or destroys the drawer object when none are left. |