Skip to main content

ScaleLerp

A class in Root.Township, the global namespace.

Sets a uniform local scale between two values from a 0 to 1 progress value. Driven by events.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private float scale0Scale at progress 0.
private float scale1Scale at progress 1.

Methods​

MemberWhat it is
void SetScale(float progress)Sets the local scale to the lerp of scale0 and scale1 by progress.