Class OptionalAttribute
When used on an aspect's ComponentDataRef field, marks that component type as optional. The DOTS source generator handles the generation of the query using this attribute. A ComponentDataRef may also be marked read-only by using the attribute [Unity.Collections.ReadOnly]
Namespace: Unity.Entities
Assembly: solution.dll
Syntax
[AttributeUsage(AttributeTargets.Field)]
public class OptionalAttribute : Attribute