> For the complete documentation index, see [llms.txt](https://heroicsolo.gitbook.io/heroic-engine/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://heroicsolo.gitbook.io/heroic-engine/basics/useful-components/label-scaler.md).

# 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&amp;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.*
