Skip to content

Format

typescript
Transform.up

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

Return

typedescription
Vector3The unit vector in the positive Y direction.

Code Example

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