Adds entities to menu item and queues the render for them.
If the entity already exists in the menu item, it will be removed and redrawn.
Parameters
params: { entities: IEntity[]; }
entities: IEntity[]
Returns void
ClearEntities
ClearEntities(): void
Clears all entities from the menu item.
Any visuals will be removed as well.
Returns void
Dispose
Dispose(): void
Returns void
Init
Init(): void
Must be sync so that experience related to enabling/disabling is easier to manage.
If any async stuff needs to be loaded then it needs to be handled internally within the manager.
Recreates the getter for the entities.
This is used when the entities within the menu item are updated.
@todo: this causes a bad side-effect where all menu item entities are queued for a re-render.
Adds entities to menu item and queues the render for them. If the entity already exists in the menu item, it will be removed and redrawn.