Format
typescript
Transform.localEulerAnglesclass: 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_name | type | description |
|---|
Return
| type | description |
|---|---|
Vector3 | Euler angles |
Code Example
typescript
OnStart(): void {
let local_angle = this.transform.localEulerAngles;
Debug.Log(local_angle);
}