ObjectIdentifier.TryGetObjectIdentifier

Declaration

public static bool TryGetObjectIdentifier(Object targetObject, out Build.Content.ObjectIdentifier objectId);

Declaration

public static bool TryGetObjectIdentifier(int instanceID, out Build.Content.ObjectIdentifier objectId);

Description

Tries to convert a persistent Object into an ObjectIdentifier.

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.


Did you find this page useful? Please give it a rating: