Styling Entities
One of the most important aspects of rendering your data is control over how it's presented. We've got a Style system that allows you to colour, extrude, and adjust in other ways based on many different properties.
Within this article we'll cover how to manage Styles for Entity Menu Items. These notes do not apply to Tileset Menu Items.
Please refer to the API Reference "Entity Styles" article for a breakdown of settings and record management.
Style records
The most commonly used process is setting up a Style through our Operator app then pointing your Menu Item at the record's ID.
If you'd like to let the user pick a Style from what is available. You can request the information like so:
Programmatic Styles
We of course allow you to avoid having to deal with Style records and define your own programmatically.
We will cover the Style syntax in a separate article. Below is an example of how to use it.
Changing Styles
Recently we've added the ability to change what Styles are enabled within a Menu Item. That way if your setup is user driven you don't have to re-enable the Menu Item to update your Entities.
Below is a simple example where we change the Style of a Menu Item after 5 seconds. In this case we changed from Style ID 1 to Style ID 2. This will work with programmatic Styles too.
If you'd like re-render your Entity in the scene so the Style is refreshed, read through the Entity Interaction documentation.