Documentation

Unity Engine


Unity Engine


IComponentData

This interface marks a struct as a component.
Read time 1 minuteLast updated a day ago

Definition

  • Type: Interface
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public interface IComponentData : IQueryTypeParameter

Remarks

Only one
IComponentData
of a given type can be added to each entity. To associate multiple values of a given component type with an entity, use IBufferElementData.
For more information, see the documentation on components.