# Scaling Effect

The **Scaling Effect** component is a utility designed for use with any GameObject, whether related to **Easy Grid Builder Pro 2** or not. This component acts as a **lighter version** of the **Buildable Object Effects** component, which is exclusive to Buildable Objects in **Easy Grid Builder Pro 2**. And allows you to add scaling effects to objects when they spawn. You can find this component in <mark style="color:purple;">**SoulGames > Utilities > Scripts**</mark><mark style="color:purple;">.</mark>

<figure><img src="https://2651556506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeumhICLT4oHoEIEssOjB%2Fuploads%2FNm3O0KhuhmbgwLegkN0H%2Fimage.png?alt=media&#x26;token=e9987095-39bd-4a77-bf30-93eba6641fc4" alt=""><figcaption></figcaption></figure>

### <mark style="color:orange;">General Settings</mark>

<table data-full-width="false"><thead><tr><th width="216">Property</th><th width="429.3333333333333">Function</th><th>Required</th></tr></thead><tbody><tr><td>Enable X Axis</td><td>Toggles scaling animation on the X-axis</td><td>No</td></tr><tr><td>Enable Y Axis</td><td>Toggles scaling animation on the Y-axis</td><td>No</td></tr><tr><td>Enable Z Axis</td><td>Toggles scaling animation on the Z-axis</td><td>No</td></tr></tbody></table>

### <mark style="color:orange;">Animation Settings</mark>

<table data-full-width="false"><thead><tr><th width="216">Property</th><th width="429.3333333333333">Function</th><th>Required</th></tr></thead><tbody><tr><td>X Axis Curve</td><td>Defines the animation curve for scaling along the X-axis.</td><td>No</td></tr><tr><td>Y Axis Curve</td><td>Defines the animation curve for scaling along the Y-axis.</td><td>No</td></tr><tr><td>Z Axis Curve</td><td>Defines the animation curve for scaling along the Z-axis.</td><td>No</td></tr><tr><td>Target Scale</td><td>The final scale of the object after the scaling animation</td><td>No</td></tr><tr><td>Random Delay</td><td>The range of random delay (in seconds) before the scaling animation starts</td><td>No</td></tr></tbody></table>

### <mark style="color:orange;">Timing And Lifecycle Settings</mark>

***

<table data-full-width="false"><thead><tr><th width="216">Property</th><th width="429.3333333333333">Function</th><th>Required</th></tr></thead><tbody><tr><td>Stop Time</td><td>Specifies the duration (in seconds) for the scaling animation</td><td>No</td></tr><tr><td>Destroy On Complete</td><td>Determines whether the component is destroyed after the scaling animation is complete</td><td>No</td></tr></tbody></table>

## <mark style="color:green;">Example Use case</mark>

You can use the **Scaling Effect** component with non-Buildable Objects to add a scaling effect when they spawn.

For example, check out the **Demo - Procedural Nodes Grid Example** scene included with **Easy Grid Builder Pro 2**. In this demo, all the nodes (tiles generated by the procedural grid) feature a unique scaling effect when they spawn. This effect is achieved using the **Scaling Effect** component.

Each node prefab in the scene has the **Scaling Effect** component attached with different values, creating distinct scaling animations for a unique visual effect.
