DiscreteStatBarVisual
A class in Root.Township, Alta.StatSystem.
Client: one segment of a DiscreteStatBar. Has its own material copy so its alpha can change, and can pulse with a scale animation.
- Listed in Stats, effects, heat and liquid
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
DiscreteStatBarVisual() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
7 private and internal fields
| Member | What it is |
|---|---|
private readonly int _Alpha | Shader property id for _Alpha. Not used; SetAlpha changes the material colour instead. |
private AnimateScaleOverTime animator | Scale animation used for pings. |
private Color color | The base material's colour, kept so SetAlpha only changes alpha. |
private Material material | Base material copied in Awake. |
private AltaCoroutine pingCoroutine | The running ping animation, if any. |
private Renderer[] renderers | Renderers that share the segment's material copy. |
private Material usedMaterial | This segment's own copy of material. |
Methods
4 private and internal methods
Used in
Members of other types that take, return or hold a DiscreteStatBarVisual: