docs.unity.cn
    Show / Hide Table of Contents

    Method WithSharedComponentFilterManaged

    WithSharedComponentFilterManaged<TSharedComponent1>(TSharedComponent1)

    Only select chunks that have a specified value for a managed shared component.

    Declaration
    public QueryEnumerable<T1, T2, T3, T4, T5, T6, T7> WithSharedComponentFilterManaged<TSharedComponent1>(TSharedComponent1 sharedComponent)
        where TSharedComponent1 : struct, ISharedComponentData
    Parameters
    Type Name Description
    TSharedComponent1 sharedComponent

    The value of TSharedComponent1 which an entity must have in order to match this query

    Returns
    Type Description
    QueryEnumerable<T1, T2, T3, T4, T5, T6, T7>

    QueryEnumerable, which allows enumerating over all Aspects, RefRO, RefRW, EnabledRefRO and EnabledRefRW components that match the constructed Query.

    Type Parameters
    Name Description
    TSharedComponent1

    The managed shared component type

    WithSharedComponentFilterManaged<TSharedComponent1, TSharedComponent2>(TSharedComponent1, TSharedComponent2)

    Only select chunks that have the specified values for two managed shared components.

    Declaration
    public QueryEnumerable<T1, T2, T3, T4, T5, T6, T7> WithSharedComponentFilterManaged<TSharedComponent1, TSharedComponent2>(TSharedComponent1 sharedComponent1, TSharedComponent2 sharedComponent2)
        where TSharedComponent1 : struct, ISharedComponentData where TSharedComponent2 : struct, ISharedComponentData
    Parameters
    Type Name Description
    TSharedComponent1 sharedComponent1

    The value of TSharedComponent1 which an entity must have in order to match this query

    TSharedComponent2 sharedComponent2

    The value of TSharedComponent2 which an entity must have in order to match this query

    Returns
    Type Description
    QueryEnumerable<T1, T2, T3, T4, T5, T6, T7>

    QueryEnumerable, which allows enumerating over all Aspects, RefRO, RefRW, EnabledRefRO and EnabledRefRW components that match the constructed Query.

    Type Parameters
    Name Description
    TSharedComponent1

    The first managed shared component type

    TSharedComponent2

    The second managed shared component type

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023