Skip to content

@modoki/engine / index / SceneData

Interface: SceneData

Scene & Prefabs

baseScene?

optional baseScene?: string

v10+: guid of a base scene this scene extends (base-scene persistence). Loaded additively before this scene's own entities and survives a swap to another scene sharing the same base. Absent = no base.


entities

entities: SceneEntityEntry[]


resources?

optional resources?: SceneResourceRef[]

v6+: explicit list of resources the scene needs. v5 and below: derived by walking entities at load time. SceneManager preloads these in parallel before instantiating any entities.


version

version: number

Built with Modoki.