Format
typescript
Transform.gameObjectclass: Transform
Description
(Read Only) The game object that the current Transform component is attached to. The component is always attached to a game object.
Parameters
| param_name | type | description |
|---|
Return
| type | description |
|---|---|
GameObject | The game object. |
Code Example
typescript
OnStart(): void {
let go = this.transform.gameObject;
}