Format
typescript
Transform.rotationclass: Transform
Description
The quaternion representing the rotation of the current Transform in world space.
Parameters
| param_name | type | description |
|---|
Return
| type | description |
|---|---|
Quaternion | The quaternion representing the rotation of the current Transform in world space. |
Code Example
typescript
OnStart(): void {
let rot = this.transform.rotation;
Debug.Log(rot);
}