Engine API Reference - v2.7.3
    Preparing search index...

    Type Alias LoadSceneCallback

    LoadSceneCallback: (err: string | null, entity?: Entity) => void

    Callback used by SceneRegistry#loadScene.

    Type declaration

      • (err: string | null, entity?: Entity): void
      • Parameters

        • err: string | null

          The error message in the case where the loading or parsing fails.

        • Optionalentity: Entity

          The loaded root entity if no errors were encountered.

        Returns void