Spinner
A class in Root.Township, the global namespace.
Client visual that spins an object each frame and loops its Z scale along a curve. Turns itself off on headless servers.
- Listed in Global namespace: S
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
Spinner() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
4 private and internal fields
| Member | What it is |
|---|---|
private float progress | Position in the scale loop, 0 to 1. |
private float rotation | Degrees turned per frame, not per second. |
private Vector3 rotationAxis | Local axis to spin around. |
private DurationCurve scaleCurve | Curve and duration for the looping Z scale. |