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 © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Thursday, August 10, 2023