Skip to content

Format

typescript
Transform.gameObject

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

Return

typedescription
GameObjectThe game object.

Code Example

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