Skip to main content

ScaleTracker

A class in Root.Township, the global namespace.

Debug component that logs its object's X scale on start and whenever it changes.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private float localscaleLast logged X scale.

Methods​

2 private and internal methods
MemberWhat it is
private void Awake()Records the starting X scale and logs it.
private void Update()Logs the X scale when the transform changed or the scale differs from the last value.