docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Operator operator ==

    operator ==(ComponentType, ComponentType)

    Evaluates if two component types are equal based on TypeIndex and AccessModeType.

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

    The left-hand side

    ComponentType rhs

    The right-hand side

    Returns
    Type Description
    bool

    Returns true if both their type indices are equal and their access modes are equal.

    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)