CompareTo(GlobalObjectId)
Compares this unique object identifier with another to determine their relative positions in the sort order.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public int CompareTo(GlobalObjectId other)
Parameters
The other GlobalObjectId to compare with this instance.
Returns
Type | Description |
|---|---|
| int | Returns an integer that represents the relative sort order positions of the current instance and the other |
Remarks
The sort order for comparison is GlobalObjectId.assetGUID, GlobalObjectId.targetObjectId, GlobalObjectId.targetPrefabId, then GlobalObjectId.identifierType.
Note: To check if two instances of are equivalent, use GlobalObjectId.Equals instead.
GlobalObjectId