Plugins
Plugins are custom code you can write for the Navigator. They are written for a particular context, for example written for the cursor-bar where you can write your own "click" handling.
Plugins are written in Javascript with an optional HTML file as well.
You can add, edit, and enable plugins through the Navigator project view dashboard.
File layout
A Plugin is a zipped folder that includes an index.js and index.html file.
The HTML file (if present) will automatically be added to the context's HTML container. It will also be automatically removed when disposed.
Here is an example of a Plugin's index.js file.
Here is an example of a Plugin's index.html file. Please note the usage of an HTML ID for the styles and root element. It is highly recommended to work with a very unique ID to avoid conflicts with other Plugins and the Navigator itself.
Plugin Locations
| Location | Description | |
|---|---|---|
| Cursor bar | The cursor bar is the toolbar found in the top-left corner of the Navigator. It is responsible for actions the user performs when clicking on the scene or Entities in the scene. | ![]() |
| Info View | The Info View panel is the dialog that appears when an Entity is selected. | ![]() |
| Sidebar | The side bar is the toolbar found in the left side of Navigator which holds Menu Items, Bookmarks, and Scene Tree. Note: Set the Plugin setting "panelWidth" to a CSS width to change the default panel width, eg: "500px". The default value is "300px". | |
| Background | Plugins that are set to load in the background will load automatically when the page loads without the user needing to click any buttons. |
Plugin Params
Below are what parameters are passed into the Plugin's Run function in Navigator.

