omega-game-engine
    Preparing search index...

    A static class responsible for managing the loading, instantiation, and serialization of scenes and their components.

    Index

    Constructors

    Methods

    • Loads a scene from a JSON data object.

      Parameters

      • gl: WebGL2RenderingContext

        The WebGL2 rendering context. *

      • jsonData: JsonSerializedData

        The JSON data representing the scene. *

      • Optionalscene: Scene

        An optional existing Scene instance to load into. *

      Returns Promise<Scene>

      • The loaded or newly created Scene instance.
    • Links parent and child transforms based on their UUIDs.

      Parameters

      • transforms: { [key: string]: Transform }

        A map of all instantiated transforms. *

      • entities: any

        An array of raw entity data. *

      Returns void