format
typescript
GameObject.sceneclass: GameObject
description
(Read Only) The scene in which the current object is located.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
Scene | The scene in which the current object is located. |
code example
typescript
let go = new GameObject("test");
let scene = go.scene;