Skip to content

Format

typescript
Scene.gameObjectCount

class: Scene

Description

(Read Only) The total number of game objects in the current scene.

Parameters

param_nametypedescription

Return

typedescription
numberThe number of game objects.

Code Example

typescript
 const scene = SceneManager.CreateScene("test");