InGameSphereGizmo
A class in Root.Township, the global namespace.
Pooled sphere drawn in the game world, made by InGameGizmosSettings.DrawSphere. It can follow a transform.
- Listed in Global namespace: I to L
- Inherits or implements
PooledObject
Constructors
| Member | What it is |
|---|---|
InGameSphereGizmo() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
4 private and internal fields
Methods
4 private and internal methods
| Member | What it is |
|---|---|
private void Awake() | Gives the sphere its own material copy. |
private void RequestedSetup(PooledObject pooledObject) | Runs when taken from the pool. Tints the sphere with InGameGizmosSettings.Color. |
private void SetRadius(float radius) | Scales the sphere mesh to the given radius. |
private void Update() | Moves the mesh to the target. If a followed transform was destroyed, stays at its last spot. |