EntityRecord.Set_T_().md

March 19, 2022 ยท View on GitHub

DefaultEcs

DefaultEcs.Command.EntityRecord

EntityRecord.Set() Method

Sets the value of the component of type T to its default value on the corresponding Entity.
For a blittable component, this command takes 9 bytes + the size of the component.
For non blittable component, this command takes 13 bytes and may cause some allocation because of boxing on struct component type.

public void Set<T>();

Type parameters

T

The type of the component.

Exceptions

System.InvalidOperationException
Command buffer is full.