TryGetObjectIdentifier
Tries to convert a persistent Object into an ObjectIdentifier.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Build.Content
- Assembly: UnityEditor
TryGetObjectIdentifier(Object, ObjectIdentifier)
Tries to convert a persistent Object into an ObjectIdentifier.
public static bool TryGetObjectIdentifier(Object targetObject, out ObjectIdentifier objectId)
Parameters
Returns
Type | Description |
|---|---|
| bool |
Remarks
Returns false if it was not possible. This can happen if the Object is is a Scene Object, or was not loaded from and Object on disk.
TryGetObjectIdentifier(int, ObjectIdentifier)
Tries to convert a persistent Object into an ObjectIdentifier.
public static bool TryGetObjectIdentifier(int instanceID, out ObjectIdentifier objectId)
Parameters
Returns
Type | Description |
|---|---|
| bool |
Remarks
Returns false if it was not possible. This can happen if the Object is is a Scene Object, or was not loaded from and Object on disk.