Skip to content

format

typescript
GameObject.enable

class: GameObject

description

Whether the current object is enabled.

parameter

param_nametypedescription

reture

typedescription
booleanThe current enabled state of the object.

code example

javascript
let go = new GameObject("test");
Debug.Log(go.enable);