ProgressBar
An abstract class in Root.Township, the global namespace.
Base for a shader-driven gauge on one or more renderers. Setting Progress writes it to a material property, and the renderers hide when it is at or under a minimum. Client only.
- Listed in Global namespace: P
- Inherits or implements
MonoBehaviour,IBuildRendererPostBake,IBuildBakeable - Derived types
GaugeProgressBar,NamedProgressBar
Constructors
| Member | What it is |
|---|---|
protected ProgressBar() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
| Member | What it is |
|---|---|
protected MaterialPropertyBlock propertyBlock | Property block used to set the progress on the renderers. |
4 private and internal fields
Properties
| Member | What it is |
|---|---|
float Progress { get; set; } | Fill amount from 0 to 1. Setting it updates the renderers. |
abstract int ProgressVariable { get; } | Shader property id the progress is written to. |