OptionalasyncOptionalcast(glTF/GLB only) give every mesh in the scene a ground shadow; omit to inherit the application's castGroundShadow setting (on by default)
Optionalcontainercontainer in which to load the specified level
Optionalflatten(TMX only) if true, flatten all objects into the given container
Optionallight(glTF/GLB only) multiply each light's authored physical intensity by this factor instead of normalizing it to 1
Optionallights(glTF/GLB only) add the scene's authored KHR_lights_punctual lights (plus a soft ambient fill) as Light3d world children
Optionaloncallback for when the level is fully loaded, called in both forms
Optionalright(glTF/GLB only) convert the right-handed (Y-up) source to the engine's Y-down via a rotation rather than a mirror
Optionalscale(glTF/GLB only) pixels per glTF unit applied to the whole scene
Optionalset(TMX only) if true, set the viewport bounds to the map size
Optionalshadow(glTF/GLB only) world Y the ground shadows land on
return a promise that settles once the level is in the world, instead of a boolean