Entity.Enable_T_().md
March 19, 2022 ยท View on GitHub
DefaultEcs
DefaultEcs.Entity
Entity.Enable() Method
Enables the current Entity component of type T so it can appear in EntitySet.
Does nothing if current Entity does not have a component of type T.
This method is not thread safe.
public void Enable<T>();
Type parameters
T
The type of the component.
Exceptions
System.InvalidOperationException
Entity was not created from a World.