docs.unity.cn
    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
    Int32

    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.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, September 20, 2023