A class in Root.Township, Alta.Intelligence.
Editor debugging helper that draws a small sphere at a static position in the Scene view. Nothing in the code creates it.
Constructors
| Member | What it is |
|---|
GizmosHelper() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
| Member | What it is |
|---|
static Vector3 position | Where the sphere is drawn. Set it from anywhere. |
1 private and internal field
| Member | What it is |
|---|
private static GizmosHelper helper | The single instance, made by EnsureExist. |
Methods
| Member | What it is |
|---|
static void EnsureExist() | Creates a "Gizmos Helper" GameObject with this component if there isn't one. |
2 private and internal methods
| Member | What it is |
|---|
private void OnDestroy() | Clears the static instance if it's this one. |
private void OnDrawGizmos() | Draws a 0.1 radius sphere at position. |