Internal
Creates a new instance of AssetNavigationRenderPlugin.
The renderer plugin context, providing access to controller and asset contexts.
The gizmos to be used by the navigation controllers.
Protected
Readonly
emitterAn event emitter for handling custom events.
Adds an event listener for a specific event.
The type of the event key.
An object with a remove
method to unsubscribe the listener.
Registers an event listener handle to be managed by the plugin. Managed listeners will be automatically removed when the plugin is torn down.
The event listener handle to manage.
An array of available navigation modes for the asset.
@TODO: Get rid of NavigationMode
and use AssetNavigationMode
everywhere.
This means moving the componens to a separate package that can be used by asset and scenes.
Returns the current navigation mode for the asset.
The current navigation mode.
Tears down the plugin by removing all managed event listeners and clearing the event emitter. This method is called when the plugin is being destroyed.
The plugin context provided during teardown.
Protected
isChecks if the plugin has been torn down.
true
if the plugin has been torn down, otherwise false
.
Sets the navigation mode for the asset. Depending on the mode provided, the respective navigation controller is set on the controller context.
The desired navigation mode.
A renderer plugin that manages navigation controllers for an asset. This plugin allows switching between different navigation modes (e.g., asset mode, first-person view, panoramic) by initializing and setting the respective controllers on the underlying controller context.