The main exposed object. This is the entry point into the application
const canvas = document.getElementById( 'babylon-canvas' );
const viewer = Viewer( canvas, '/path/to/index.json' );
The class does nothing on its own and needs to bootstrap
cloneMaterialsOnMutation flag, as defined in the spec
Gets the strategy handler for naming cloned nodes.
Sets the strategy handler for naming cloned nodes.
Check the docs of the tag managers renaming chapter for further details.
Adds a listener function for the given event.
Focuses the camera to see every visible mesh in scene and tries to optimize wheel precision and panning
Starts the application. This will
Error if any of the files is not found/valid
Broadcasts the given event with given arguments to all listeners and emitters.
Enables the Babylon.js Inspector.
Due to the additional size of the inspector, this function is only available in "development" builds!
Signalizes if inspector could be loaded
Checks whether the browser is capable of handling XR.
Moves or animates the active camera to given
Pause render loop.
eventListeners for given event.
Trigger a resize event for the
Resume render loop when paused.
Takes a sceenshot the the current scene. The result is a string containing a base64 encoded image
Show coordinate system with given dimension (for debugging purpose).
Help function for automatically creating a valid Spec from a list of variant names and dedicated GLB/babylon URLs. This data is most likely coming from babylon assets from the Combeenation system but other sources are also valid.
Generated using TypeDoc