GetGlobalObjectIdsSlow
Creates an array of unique object identifiers based on an array of objects.
Read time 2 minutesLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
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
Array of objects to obtain unique identifiers for.
Array of objects to write to.
GlobalObjectIdRemarks
For each item in , this method obtains its unique and writes it to the corresponding element in . Both arrays must be the same size.
objectsGlobalObjectIdoutputIdentifiersThis method is slow. Use it sparingly and avoid making multiple calls.
Additional Resources: GlobalObjectId.GetGlobalObjectIdSlow, Object.GetInstanceID()
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
Array of instance IDs of the objects to obtain unique identifiers for.
Array of objects to write to.
GlobalObjectIdRemarks
For each object identified by an item in , this method obtains the unique and writes it to the corresponding element in . Both arrays must be the same size.
instanceIdsGlobalObjectIdoutputIdentifiersThis method is slow. Use it sparingly and avoid making multiple calls.
Additional Resources: GlobalObjectId.GetGlobalObjectIdSlow, Object.GetInstanceID()
GetGlobalObjectIdsSlow(EntityId[], GlobalObjectId[])
Creates an array of unique object identifiers based on an array of objects.
public static void GetGlobalObjectIdsSlow(EntityId[] entityIds, GlobalObjectId[] outputIdentifiers)
Parameters
Remarks
For each item in , this method obtains its unique and writes it to the corresponding element in . Both arrays must be the same size.
objectsGlobalObjectIdoutputIdentifiersThis method is slow. Use it sparingly and avoid making multiple calls.
Additional Resources: GlobalObjectId.GetGlobalObjectIdSlow, Object.GetInstanceID()