Skip to content

Format

typescript
Transform.rotation

class: Transform

Description

The quaternion representing the rotation of the current Transform in world space.

Parameters

param_nametypedescription

Return

typedescription
QuaternionThe quaternion representing the rotation of the current Transform in world space.

Code Example

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