Skip to content

Format

typescript
Transform.right

class: 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_nametypedescription

Return

typedescription
Vector3A unit vector in the X-axis positive direction.

Code Example

typescript
OnStart(): void {
    let right = this.transform.right;
    }