vcapote Posted July 24, 2019 Share Posted July 24, 2019 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
morbid Posted July 24, 2019 Share Posted July 24, 2019 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: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
vcapote Posted July 30, 2019 Author Share Posted July 30, 2019 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
Recommended Posts