Skip to content

Format

typescript
Transform.localRotation

class: Transform

Description

The rotation relative to the parent Transform.

If the current Transform does not have a parent, it is the same as the local rotation of the Transform itself.

Parameters

param_nametypedescription

Return

typedescription
QuaternionThe rotation relative to the parent Transform.

Code Example

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