docs.unity3d.com
Search Results for

    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
    bool

    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
    bool

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

    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)