Skip to main content

RendererScaleAnimator

A class in Root.Township, the global namespace.

Scale animator that also tells dock visuals whether the object is scaled up.

Constructors​

MemberWhat it is
RendererScaleAnimator(MonoBehaviour behaviour, bool isInitiallyOn, Vector3 startScale, AnimationCurve on, AnimationCurve off, bool isDisallowingZero, DockVisual[] dockVisuals)Creates a RendererScaleAnimator from behaviour, isInitiallyOn, startScale, on, off, isDisallowingZero and dockVisuals.

Fields​

1 private and internal field
MemberWhat it is
private DockVisual[] dockVisualsDock visuals told about the scale state.

Methods​

MemberWhat it is
protected override void SetScale(float scale)Sets the scale, then marks each dock visual scaled up when the scale is above 0.01.