Skip to content

format

typescript
GameObject.scene

class: GameObject

description

(Read Only) The scene in which the current object is located.

parameter

param_nametypedescription

reture

typedescription
SceneThe scene in which the current object is located.

code example

typescript
let go = new GameObject("test");
let scene = go.scene;