Version: 2021.1
LanguageEnglish
  • C#

GlobalObjectId.GlobalObjectIdentifiersToInstanceIDsSlow

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static void GlobalObjectIdentifiersToInstanceIDsSlow(GlobalObjectId[] identifiers, out int[] outputInstanceIDs);

Parameters

identifiers Array of GlobalObjectIds to convert.
outputInstanceIDs Resulting array of InstanceIDs.

Description

Creates an array of InstanceIDs based on an array of GlobalObjectIds.

This call is slow and should be avoided or used sparingly.

Both arrays must be the same size.

Any GlobalObjectIds in the identifiers array that are not found are given a corresponding value of 0 in the output instance ID array.