docs.unity.cn
    Show / Hide Table of Contents

    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]

    Inheritance
    Object
    Attribute
    OptionalAttribute
    Namespace: Unity.Entities
    Syntax
    [AttributeUsage(AttributeTargets.Field)]
    public class OptionalAttribute : Attribute, _Attribute
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023