About Object Key(like object id?)

I am grateful to be using Omniverse.

Is there a unique key to identify objects?

Currently, I am identifying objects using the Prim path.

However, if the object name or path changes, it becomes impossible to identify that object.
Is there a unique key for objects in Omniverse, like an object ID, that is not based on the object name or path?

USD and Omniverse Kit do not provide a built-in way to uniquely identify Prims beyond their Prim paths. The Prim path serves as the object’s identifier.

If you need a persistent identifier, you can tag a Prim with a custom attribute or add custom metadata to store any additional ID you require. This approach lets you generate and manage your unique identifiers, but it is up to you as the developer to ensure the consistency and accuracy of that data over time.

For more information, please refer to these resources:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.