> For the complete documentation index, see [llms.txt](https://kap35.gitbook.io/kap-engine-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kap35.gitbook.io/kap-engine-wiki/user-manual/transform/scale.md).

# Scale

## Setter

setScale is the only function to set the scale of your GameObject. This function gonna set the local scale.

```cpp
gameObject.getComponent<KapEngine::Transform>().setScale({10, 10, 10}); // OK
gameObject.getComponent<KapEngine::Transform>().setScale({10, 10}); // OK : z gonna be set to 0
```

## Getter

There is 2 types of getters :&#x20;

* Local : getLocalScale is to get only the scale in parent of GameObject
* World : getWorldScale is to get scale of GameObject relative to parent scales

both of these functions return [KapEngine::Tools::Vector3](/kap-engine-wiki/user-manual/tools/vectors.md).

{% hint style="info" %}
calculs with parent are multiplications
{% endhint %}
