docs.unity.cn
    Show / Hide Table of Contents

    Operator Equality

    Equality(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
    Boolean

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

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Thursday, August 10, 2023