docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CompareTo

    CompareTo(Entity)

    Compare this entity against a given one

    Declaration
    public int CompareTo(Entity other)
    Parameters
    Type Name Description
    Entity other

    The other entity to compare to

    Returns
    Type Description
    int

    Difference based on the Entity Index value

    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)