Basic Usage
Register (Add or Update)
Update
Remove a Single Segment
Remove All Nameplate Data
Where You Can Call These Methods
register() and remove() work anywhere you have access to the Store and a Ref: event handlers, command handlers, custom systems, etc.
The Tick System Exception
If you’re inside anEntityTickingSystem and the entity does NOT already have a NameplateData component, register() will try to call store.addComponent(), which throws:
CommandBuffer pattern from the Tick Systems page instead.
If the entity already has the component, register() just mutates the internal map — which is safe from tick systems.
NameplateData Direct Access
For advanced use cases, you can work withNameplateData directly: