Entity interaction
Once a scene is rendered there are a few ways to interact with it. In this section we'll be going over Entity-specific interaction.
Menu item manager
Rendering of data is performed through Menu Items within these libraries. Menu items are actions with instructions on how to retrieve then draw data.
If you have data you'd prefer to load in yourself you can do so by either creating a Menu Item that delivers prepared JSON entities, or by manually adding them to the visual register through the register.AddRego method.
Please contact our support for examples as these are not prepared yet.
The Menu Item manager manages what Menu Items are enabled and lets you push Entity updates to the visuals register.
The Menu Item manager is accessible through your Cesium viewer instance.
Here is how you can enable, disable, and know what Menu Items are enabled.
If you've updated an Entity record and would like the related visual to refresh then you can do it like so:
Visuals register
Any Nextspace Entity related object that is loaded into the scene will be registed into the visuals register for your Cesium viewer.
The register is accessible through the Menu Items manager.
Here is how you can retrieve loaded Entities through different methods.
Here are some ways to apply adjustments to the Entities.
These methods will work regardless of whether the related Entity is loaded or not.
If you set an Entity ID to be hidden, then if that Entity loads in later it will hide anyways.
You can subscribe to the register's updates so you can know when an Entity has loaded in or out of the scene.