기술 자료

Unity Engine

Unity Engine

GlobalObjectIdentifierToInstanceIDSlow(GlobalObjectId)

Obtains the instance ID of the object from its unique object identifier.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
경고
Removed. GlobalObjectIdentifierToInstanceIDSlow is obsolete. Use GlobalObjectIdentifierToEntityIdSlow instead.
public static int GlobalObjectIdentifierToInstanceIDSlow(GlobalObjectId id)

Parameters

The
GlobalObjectId
to lookup.

Returns

Type

Description

intReturns the
InstanceID
of 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.