docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddNone

    AddNone(ComponentType)

    Obsolete. Use WithNone(ComponentType*, int) instead.

    Declaration
    [Obsolete("Use WithNone<T,...> instead, or WithNone(INativeList) if component types are not known at compile time. (RemovedAfter Entities 1.0)", false)]
    public EntityQueryBuilder AddNone(ComponentType t)
    Parameters
    Type Name Description
    ComponentType t

    The component type

    Returns
    Type Description
    EntityQueryBuilder

    The builder object that invoked this method.

    Remarks

    Obsolete. Use WithNone(ComponentType*, int) instead.

     Add a "none" matching type to the current query. Types in the None list are never written to. If the AccessModeType field of the
     provided component type is <xref href="Unity.Entities.ComponentType.AccessMode.ReadWrite" data-throw-if-not-resolved="false"></xref>, will be forced to
     <xref href="Unity.Collections.NativeArray%601.ReadOnly" data-throw-if-not-resolved="false"></xref> in the query.
    
    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)