Format
typescript
Transform.positionclass: Transform
Description
The current position of the Transform relative to the world.
Parameters
| param_name | type | description |
|---|
Return
| type | description |
|---|---|
Vector3 | The position relative to the world. |
Code Example
typescript
OnStart(): void {
let pos = this.transform.position;
Debug.Log(pos);
}