docs.unity.cn
    Show / Hide Table of Contents

    Method WithDisabled

    WithDisabled<TComponent1>()

    Specify all read-only component types that must be present AND disabled.

    Declaration
    public QueryEnumerable<T1, T2, T3, T4, T5, T6, T7> WithDisabled<TComponent1>()
        where TComponent1 : struct, IEnableableComponent, IComponentData
    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
    TComponent1

    A component type

    WithDisabled<TComponent1, TComponent2>()

    Specify all read-only component types that must be present AND disabled.

    Declaration
    public QueryEnumerable<T1, T2, T3, T4, T5, T6, T7> WithDisabled<TComponent1, TComponent2>()
        where TComponent1 : struct, IEnableableComponent, IComponentData where TComponent2 : struct, IEnableableComponent, IComponentData
    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
    TComponent1

    A component type

    TComponent2

    A component type

    WithDisabled<TComponent1, TComponent2, TComponent3>()

    Specify all read-only component types that must be present AND disabled.

    Declaration
    public QueryEnumerable<T1, T2, T3, T4, T5, T6, T7> WithDisabled<TComponent1, TComponent2, TComponent3>()
        where TComponent1 : struct, IEnableableComponent, IComponentData where TComponent2 : struct, IEnableableComponent, IComponentData where TComponent3 : struct, IEnableableComponent, IComponentData
    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
    TComponent1

    A component type

    TComponent2

    A component type

    TComponent3

    A 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