Label Scaler

Presented by LabelScaler class, this component allows to animate object with simple increase-decrease animation.

It could be useful for different UI currency panels, but actually can be used on any gameobject, even in world space. For example, you can animate environment objects by this component, when player strikes them.

Label Scaler component

Parameters in inspector

Anim Time – length of animation in seconds (0.3 sec by default)

Max Scale Factor – maximum scale of object during animation (1.1 by default, which is 110%)


Available methods

public void SetLabelText(string _text)

This method sets text string and automatically starts scale animation.


public void RunAnim()

This method runs scale animation.

Last updated