Interface IAspect
Base interface for Aspects, a higher level combination for components.
Namespace: Unity.Entities
Assembly: solution.dll
Syntax
public interface IAspect : IQueryTypeParameter
Remarks
Implement IAspect on a struct with any number of RefRW<T> fields. A RefRW<T> field may use these attributes: [OptionalAttribute] Make the component optional. Field IsValid will be true if the component is present on the current entity. [ReadOnlyAttribute] Make the component read-only when building an entity query that uses the aspect. The field ValueRW will break the safety checks. Use ValueRO instead.