Skip to content

format

typescript
GameObject.DestroyGameObject(go)

class: GameObject

description

Destroy the game object.

parameter

param_nametypedescription
goGameObjectThe object to be destroyed.

return

typedescription
void

code example

typescript
let go = new GameObject();
GameObject.DestroyGameObject(go);