Skip to main content

InputScaler

A class in Root.Township, the global namespace.

Scales its transform evenly by one number, set in the inspector or through Scale.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private float scaleBacking field for Scale.

Properties​

MemberWhat it is
float Scale { get; set; }Uniform scale. Setting it updates the transform at once.

Methods​

2 private and internal methods
MemberWhat it is
private void Awake()Applies the scale on load.
private void OnValidate()Reapplies the scale when it is edited during play.