Format
typescript
Transform.rightclass: Transform
Description
(Read Only) The position of the game object's X-axis positive direction in world space Transform. When the game object is rotated, this value will also change direction.
Parameters
| param_name | type | description |
|---|
Return
| type | description |
|---|---|
Vector3 | A unit vector in the X-axis positive direction. |
Code Example
typescript
OnStart(): void {
let right = this.transform.right;
}