Version: 2023.2
public int CompareTo (GlobalObjectId other);

参数

other The other GlobalObjectId to compare.

返回

int Value comparing the value of the two GlobalObjectId types. Zero will be returned if the values are equal.

描述

Returns an integer value comparing the value of the two GlobalObjectId types.

The comparison order is assetGUID, targetObjectId, targetPrefabId, then identifierType.