GlobalObjectIdentifierToObjectSlow(GlobalObjectId)
Obtains a reference to an object from its unique object identifier.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public static Object GlobalObjectIdentifierToObjectSlow(GlobalObjectId id)
Parameters
The to lookup.
GlobalObjectIdReturns
Type | Description |
|---|---|
| Object | Returns a reference to the object. |
Remarks
This method is slow. Use it sparingly. If you use this method in a large project within other performance-sensitive contexts such as ISerializationCallbackReceiver.OnBeforeSerialize or ISerializationCallbackReceiver.OnAfterDeserialize, it's strongly recommended to profile the performance impact.
Additional Resources: GlobalObjectId.GlobalObjectIdentifiersToObjectsSlow