Skip to main content

RespawnShrinePowerIndicator

A class in Root.Township, ATT.Respawn.

Fills the shrine's power gauge renderers to show how much fuel is left.

Constructors​

MemberWhat it is
RespawnShrinePowerIndicator()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

4 private and internal fields
MemberWhat it is
private static readonly int _FillProgressShader property ID for the gauge fill amount.
private Material instantiatedMaterialBacking field for InstantiatedMaterial.
private static readonly Logger loggerClass logger.
private Renderer[] powerGaugesThe gauge renderers.

Properties​

1 private and internal property
MemberWhat it is
private Material InstantiatedMaterial { get; }A material copy made on first use and shared across all the gauge renderers.

Methods​

MemberWhat it is
void SetGaugeMaterialProgression(float progress)Sets the gauges' _FillProgress, clamped to 0 to 1.
2 private and internal methods
MemberWhat it is
private void OnDestroy()Destroys the material copy.
private void IBuildRendererPostBake.PostBake()Build bake step that drops null gauge renderers.