docs.unity.cn
    Show / Hide Table of Contents

    Method AddSharedComponentFilter

    AddSharedComponentFilter<SharedComponent>(SharedComponent)

    Filters this EntityQuery so that it only selects entities with shared component values matching the values specified by the sharedComponent1 parameter. Additive with other filter functions.

    Declaration
    [NotBurstCompatible]
    public void AddSharedComponentFilter<SharedComponent>(SharedComponent sharedComponent)
        where SharedComponent : struct, ISharedComponentData
    Parameters
    Type Name Description
    SharedComponent sharedComponent
    Type Parameters
    Name Description
    SharedComponent
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on 04 August 2022
    Terms of use