Format
typescript
Transform.localRotationclass: 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_name | type | description |
|---|
Return
| type | description |
|---|---|
Quaternion | The rotation relative to the parent Transform. |
Code Example
typescript
OnStart(): void {
let local_rot = this.transform.localRotation;
Debug.Log(local_rot);
}