SpiecsEngine
 
Loading...
Searching...
No Matches

◆ RemoveComponent()

template<typename T >
void Spices::World::RemoveComponent ( entt::entity e)

Remove Component owned from this entity.

Template Parameters
TWhich Component we will remove.
Parameters
[in]eentt::entity.

Definition at line 366 of file World.h.

367 {
369
370 std::unique_lock<std::shared_mutex> lock(m_Mutex);
371
372 m_Registry.remove<T>(e);
373 }
#define SPICES_PROFILE_ZONE
entt::registry m_Registry
This variable handles all entity.
Definition World.h:250
std::shared_mutex m_Mutex
Mutex for world.
Definition World.h:245