# Label Scaler

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

{% hint style="info" %}
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.
{% endhint %}

<figure><img src="https://1131436974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9rEHd0nHFvWCSkMEfAjl%2Fuploads%2FaIzKFytaAgkcPZYcOct7%2Fimage.png?alt=media&#x26;token=3e441df7-5bcd-4c73-9386-1daaba6a0231" alt=""><figcaption><p>Label Scaler component</p></figcaption></figure>

### 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

```csharp
public void SetLabelText(string _text)
```

_This method sets text string and automatically starts scale animation._

***

```csharp
public void RunAnim()
```

_This method runs scale animation._
