Skip to content

Format

typescript
Transform.localScale

class: 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_nametypedescription

Return

typedescription
Vector3The scale relative to the parent Transform.

Code Example

typescript
OnStart(): void {
    let local_scale = this.transform.localScale;
    Debug.Log(local_scale);
    }