Is Unique id actually unique across all nodes, textures, materials, etc

Hello,

I am working on a project that allows user to select object and all of that. I am using unique id system to identify nodes, materials, etc.

I am wondering, is it unique across the entire entire scene? For example, can a mesh and a material have the same unique ids?

Thank you!

UID function is here - Babylon.js/guid.ts at 7dca66b3127dfb5e0614f4e539a2e8a655d3e7b5 · BabylonJS/Babylon.js · GitHub

Seems that it works on the scene level (this._scene.getUniqueId();), as example -

It is actually even unique for the entire tab accross all engines :slight_smile:

2 Likes