docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IAspect

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

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

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)