Entity.RemoveComponent_T_().md
February 25, 2024 ยท View on GitHub
Friflo.Engine.ECS
Friflo.Engine.ECS.Entity
Entity.RemoveComponent() Method
Remove the component of the given type from the entity.
public bool RemoveComponent<T>()
where T : struct, Friflo.Engine.ECS.IComponent, System.ValueType, System.ValueType;
Type parameters
T
Returns
System.Boolean
true if entity contained a component of the given type before
Remarks
Executes in O(1)