Jump to content

[SOLVED] Unique Node ID Across Worlds


photo

Recommended Posts

Hi,

We are looking to use some sort of inventory system across worlds, however we are using the node id to uniquely identify information about the object.

If we were to store this node id, and then recreate the node after loading into a new world/level using the same id - how likely would there be conflicts with the automatic node id's generated in the separate world file? Or is it recommended that we find another method of associating a unique identifier?

Thanks

Link to comment

Hello vcapote,

Node ID is unstable value. We do not recommend use them for object identification. Have you considered properties system? You can create and store your own IDs for the nodes and use them for node recreation.

Alternatively, you can store your node in a separate files: https://developer.unigine.com/en/docs/2.8/objects/nodes/reference/

Thanks.

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment

Hi Morbid - yes, we're also using the property system, so we can use it to store our own unique id. I was just curious if we could use the node-id for this purpose.

Thanks for your response!

Link to comment
  • morbid changed the title to [SOLVED] Unique Node ID Across Worlds
×
×
  • Create New...