docs.unity.cn
    Show / Hide Table of Contents

    Interface IAspect

    Base interface for Aspects, a higher level combination for components.

    Namespace: Unity.Entities
    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.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023