EntityRecord.SetSameAs_T_(EntityRecord).md
March 19, 2022 ยท View on GitHub
DefaultEcs
DefaultEcs.Command.EntityRecord
EntityRecord.SetSameAs(EntityRecord) Method
Sets the value of the component of type T on the corresponding Entity to the same instance of an other EntityRecord.
This command takes 13 bytes.
public void SetSameAs<T>(in DefaultEcs.Command.EntityRecord reference);
Type parameters
T
The type of the component.
Parameters
reference EntityRecord
The other EntityRecord used as reference.
Exceptions
System.InvalidOperationException
Command buffer is full.