Skip to content

Format

typescript
Transform.position

class: Transform

Description

The current position of the Transform relative to the world.

Parameters

param_nametypedescription

Return

typedescription
Vector3The position relative to the world.

Code Example

typescript
OnStart(): void {
    let pos = this.transform.position;
    Debug.Log(pos);
    }