docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CompareTo

    CompareTo(EntityGuid)

    Compares an EntityGuid against a given one to find their sort order.

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

    The other EntityGuid to compare to

    Returns
    Type Description
    int

    Returns -1 if this EntityGuid goes first in the sort order, or 1 if the other should goes first in the sort order. Otherwise returns 0 if they are equal.

    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)