Method SetEntityComponentData
SetEntityComponentData<T>(T)
Modify the data for a component on the entity associated with the controller. This can only be called from PreparePredictedData.
Declaration
public void SetEntityComponentData<T>(T data) where T : unmanaged, IComponentData
Parameters
Type | Name | Description |
---|---|---|
T | data | Data to assign to the entity. |
Type Parameters
Name | Description |
---|---|
T | Unmanaged type of IComponentData. |