docs.unity.cn
    Show / Hide Table of Contents

    Operator Equality

    Equality(Entity, Entity)

    Entity instances are equal if they refer to the same entity.

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

    An Entity object.

    Entity rhs

    Another Entity object.

    Returns
    Type Description
    Boolean

    True, if both Index and Version are identical.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on 04 August 2022
    Terms of use