Parameters
| Name | Description | Default |
|---|---|---|
entity | Entity whose component lifecycle is changing. | — |
world | World that owns the entity and component lookup. | — |
Function
removeMeshedHandle(entity: EntityHandle, world: World): voidReleases the mesh handle held by an entity’s Meshed component.
This function is a ComponentHook remove callback. It looks up
Meshed for entity in world; when the entity is stale, invalid, or does
not have that component, the lookup is empty and the callback returns
without dropping anything. When the lookup succeeds, it calls
Handle#drop on the component’s handle.
The callback runs while the component is still stored, before the row moves
during World#remove or is deleted during World#despawn.