Spawn System
Implemented
This feature is fully implemented.
Create mesh entities at runtime and despawn them with automatic native cleanup.
SpawnMeshEntity
World.SpawnMeshEntity() is a convenience method that creates an ECS entity, attaches a Transform and MeshComponent, and registers it with the native renderer in one call:
This is equivalent to:
Despawn with Auto-Cleanup
World.Despawn() automatically cleans up native renderer entities — no manual RemoveEntity call needed:
- If the entity has a
MeshComponent, itsRendererEntityIdis passed toNativeBridge.RemoveEntity()before removal - If the entity has children (via
Hierarchy), they are recursively despawned as well