Format
typescript
Transform.forwardclass: Transform
Description
(Read Only) The unit vector in the positive Z direction in world space for the game object.
This value also changes direction when the game object is rotated.
Parameters
| param_name | type | description |
|---|
Return
| type | description |
|---|---|
Vector3 | The unit vector in the positive Z direction. |
Code Example
typescript
OnStart(): void {
let forward = this.transform.forward;
}