Version: 2022.3

GlobalObjectId.GetGlobalObjectIdSlow

切换到手册
public static GlobalObjectId GetGlobalObjectIdSlow (Object targetObject);
public static GlobalObjectId GetGlobalObjectIdSlow (int instanceId);

参数

targetObject 要转换的对象。
instanceId The InstanceID of the Object to be converted.

返回

GlobalObjectId 转换的 GlobalObjectId。如果转换不成功,则将 GlobalObjectId 设置为默认 null ID:"GlobalObjectId_V1-0-00000000000000000000000000000000-0-0"。

描述

Converts an Object reference or InstanceID to a GlobalObjectId.

This call is slow and should be avoided or used sparingly.
See Also: GetGlobalObjectIdsSlow, Object.GetInstanceID