Skip to main content

GlyphDisplayer

A class in Root.Township, the global namespace.

Pooled object that shows a glyph renderer after a delay, starting its shader animation at that moment.

Constructors​

MemberWhat it is
GlyphDisplayer()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 _StartTimeShader property ID for _StartTime.
private Coroutine glyphCoroutinePending show coroutine, or null.
private Renderer glyphRendererRenderer that shows the glyph.
private float glyphShowDelaySeconds before the glyph appears.

Methods​

MemberWhat it is
override void FinishRequest()When taken from the pool, starts the delayed show.
void HideGlyph()Stops a pending show and hides the renderer.
override void Release()Hides the glyph before returning to the pool.
void ResetGlyphTimer()Starts the delayed show unless one is already pending.
1 private and internal method
MemberWhat it is
private IEnumerator DelayShowGlyph() (iterator)Coroutine: waits glyphShowDelay, sets the material's _StartTime and shows the renderer.