EntityManager.addEntityCopy

Add copy of entity to system and returns pointer to it. Added copy has same data as copied entity. Returen pointer is valid only before one from commit(), begin() or end() will be called. To save entity to further use you should save ID instead of pointer.

struct EntityManager
export export
addEntityCopy

Parameters

id EntityID

ID of entity to be copyied.

Meta