Format
typescript
Transform.upclass: Transform
Description
(Read Only) The unit vector in the positive Y direction of the game object's Transform in world space.
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 Y direction. |
Code Example
typescript
OnStart(): void {
let up = this.transform.up;
}