Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetGlobalObjectIdsSlow

Creates an array of unique object identifiers based on an array of objects.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

GetGlobalObjectIdsSlow(Object[], GlobalObjectId[])

Creates an array of unique object identifiers based on an array of objects.
public static void GetGlobalObjectIdsSlow(Object[] objects, GlobalObjectId[] outputIdentifiers)

Parameters

objects

Array of objects to obtain unique identifiers for.

outputIdentifiers

Array of
GlobalObjectId
objects to write to.

Remarks

For each item in
objects
, this method obtains its unique
GlobalObjectId
and writes it to the corresponding element in
outputIdentifiers
. Both arrays must be the same size.
This method is slow. Use it sparingly and avoid making multiple calls.

GetGlobalObjectIdsSlow(int[], GlobalObjectId[])

Creates an array of unique object identifiers based on an array of instance IDs.
public static void GetGlobalObjectIdsSlow(int[] instanceIds, GlobalObjectId[] outputIdentifiers)

Parameters

instanceIds

Array of instance IDs of the objects to obtain unique identifiers for.

outputIdentifiers

Array of
GlobalObjectId
objects to write to.

Remarks

For each object identified by an item in
instanceIds
, this method obtains the unique
GlobalObjectId
and writes it to the corresponding element in
outputIdentifiers
. Both arrays must be the same size.
This method is slow. Use it sparingly and avoid making multiple calls.