scene-add-game-objects
Add multiple game objects to a Phaser scene, including images, sprites, text, and polygons. Unlock prefab instance properties before setting them.
Instructions
Add multiple new game objects to the scene. If you are adding prefab instances, then you should include the "unlock" property which contains an array of the name of the properties you are setting to the object. By default, are properties are locked in a prefab instance, so you need to unlock them before setting them, otherwise, the prefab instance will get the values defined originally in the prefab scene.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objects | Yes | ||
| sceneId | Yes | The `id` of the scene. The `id` is not the name of the scene, else a unique identifier is set in the scene data. You need to read the scene data to get the `id`. |