docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Operator operator !=

    operator !=(EntityQueryMask, EntityQueryMask)

    Compare two instances for inequality.

    Declaration
    public static bool operator !=(EntityQueryMask lhs, EntityQueryMask rhs)
    Parameters
    Type Name Description
    EntityQueryMask lhs

    The left instance to compare.

    EntityQueryMask rhs

    The right instance to compare.

    Returns
    Type Description
    bool

    False if both masks refer to the same archetype set within the same world, or true if not.

    In This Article
    Back to top
    Copyright © 2026 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)