TemperatureVisuals
A class in Root.Township, the global namespace.
Drives a smelter-style fire's look from its temperature: light faders, coal glow and two particle sets. Client only (skipped on a headless server); Recycler calls UpdateVisuals.
- Listed in Global namespace: T to X
- Inherits or implements
MonoBehaviour,IBuildRendererPostBake,IBuildBakeable - Nested types
ParticleSystemHandler
Constructors
| Member | What it is |
|---|---|
TemperatureVisuals() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
11 private and internal fields
| Member | What it is |
|---|---|
private static readonly int _EmissionColor | Shader property ID for _EmissionColor. |
private Renderer[] coals | Coal renderers that glow with heat. |
private AnimationCurve coalsBrightness | Curve from heat to coal emission brightness. |
private Material coalsMaterial | Shared material copy for all coal renderers. |
private bool isPlayingParticles | Not used; each particle handler tracks its own playing state. |
private LightFader[] lightFaders | Lights that fade with heat. |
private float maximumLight | Light multiplier at full heat. |
private float minimumLight | Light multiplier at the lowest heat, and when cold. |
private Coroutine particlesStoppingCoroutine | Not used; each particle handler keeps its own stop coroutine. |
private TemperatureVisuals.ParticleSystemHandler pushParticles | Particles driven by the push value (probably when the bellows are pumped). |
private TemperatureVisuals.ParticleSystemHandler stableParticles | Particles driven by the steady heat value. |
Methods
| Member | What it is |
|---|---|
void UpdateVisuals(float value, float pushValue) | Updates lights, coals and stable particles from the heat value, and the push particles from the push value (both 0 to 1). |
6 private and internal methods
Used in
Members of other types that take, return or hold a TemperatureVisuals: