Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.24 KB

EntityRecord.Set_T_(T).md

File metadata and controls

31 lines (20 loc) · 1.24 KB

EntityRecord.Set(T) Method

Sets the value of the component of type T 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>(in T component);

Type parameters

T

The type of the component.

Parameters

component T

The value of the component.

Exceptions

System.InvalidOperationException
Command buffer is full.