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 SetSameAs<T>(in DefaultEcs.Entity reference);
T
The type of the component.
reference
Entity
The other Entity used as reference.
System.InvalidOperationException
Entity was not created from a World.
System.InvalidOperationException
Reference Entity comes from a different World.
System.InvalidOperationException
Reference Entity does not have a component of type T.