ObjectIdentifier.TryGetObjectIdentifier

public static bool TryGetObjectIdentifier(Object targetObject, out Build.Content.ObjectIdentifier objectId);
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.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答