Entity.SetSameAsWorld_T_().md
March 19, 2022 ยท View on GitHub
DefaultEcs
DefaultEcs.Entity
Entity.SetSameAsWorld() Method
Sets the value of the component of type T on the current Entity to the same instance of an other Entity.
This method is not thread safe.
public void SetSameAsWorld<T>();
Type parameters
T
The type of the component.
Exceptions
System.InvalidOperationException
Entity was not created from a World.
System.InvalidOperationException
World does not have a component of type T.