Format
typescript
Transform.localScaleclass: Transform
Description
The scale relative to the parent Transform.
If the current Transform does not have a parent, it is the same as the local scale of the Transform itself.
Parameters
| param_name | type | description |
|---|
Return
| type | description |
|---|---|
Vector3 | The scale relative to the parent Transform. |
Code Example
typescript
OnStart(): void {
let local_scale = this.transform.localScale;
Debug.Log(local_scale);
}