文档

Unity Engine


User Manual

Script Reference

Unity Engine


InstanceIDsToGUIDs(NativeArray<int>, NativeArray<GUID>)

Sets a NativeArray of GUID s for every valid Instance ID that is an asset.
阅读时间1 分钟最后更新于 22 天前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
警告
Removed. Please use EntityIDsToGUIDs() instead.
public static void InstanceIDsToGUIDs(NativeArray<int> instanceIDs, NativeArray<GUID> guidsOut)

Parameters

Remarks

Both arrays must be the same length and initialised before calling. The caller is responsible for the lifetime of these arrays. If an Instance ID is not valid or does not refer to an Object that is an asset, the GUID will be set to default.