文档

Unity Engine

Unity Engine

GlobalObjectIdentifierToObjectSlow(GlobalObjectId)

Obtains a reference to an object from its unique object identifier.
阅读时间1 分钟最后更新于 2 天前

Definition

public static Object GlobalObjectIdentifierToObjectSlow(GlobalObjectId id)

Parameters

The
GlobalObjectId
to lookup.

Returns

Type

Description

ObjectReturns 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.