Function loadBabylon
-
loadBabylon(
engine: EngineContext,
url: string,
opts?: LoadBabylonOptions,
): Promise<AssetContainer>Parameters
- engine: EngineContext
The engine (provides GPU device)
- url: string
URL to the .babylon file
- opts: LoadBabylonOptions = {}
Optional loader configuration
Returns Promise<AssetContainer>
- engine: EngineContext
Load a .babylon scene file and return a AssetContainer. Pass the result to addToScene() to populate the scene.