Skip to content

Format

typescript
Transform.localEulerAngles

class: Transform

Description

The rotation relative to the parent transform, expressed as Euler angles (in degrees).

This property can be used to set the rotation of a quaternion and can be read to obtain the value of the Euler angles.

Parameters

param_nametypedescription

Return

typedescription
Vector3Euler angles

Code Example

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