docs.unity3d.com
    Show / Hide Table of Contents

    Method Equals

    Equals(Object)

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

    Declaration
    public override bool Equals(object compare)
    Parameters
    Type Name Description
    Object compare

    The object to compare to this Entity.

    Returns
    Type Description
    Boolean

    True, if the compare parameter contains an Entity object having the same Index and Version as this Entity.

    Overrides
    ValueType.Equals(Object)

    Equals(Entity)

    Entity instances are equal if they represent the same entity.

    Declaration
    public bool Equals(Entity entity)
    Parameters
    Type Name Description
    Entity entity

    The other Entity.

    Returns
    Type Description
    Boolean

    True, if the Entity instances have the same Index and Version.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023