How to avoid too nested scene explorer nodes hierarchy?
There is a root always and several level nesting of nodes and meshes inside which I want to hide from the users.
Can Extensibility API be used for this? What is the recommended way to achieve this?
Where do you want to hide it ?
I want to show no to less nested node hierarchy in Inspector’s scene explorer.
If a node (could be mesh, light or camera) has a property like this:
mesh.reservedDataStore = {hidden: true}
then it will not be visible in the scene explorer
2 Likes
Will a child node be visible even if its parent node has mesh.reservedDataStore = {hidden: true}
?
If so I can set these when I build my scene by traversing the scene.rootNodes
.
Interesting. Works on my end, it shows the model at least.
The nodes are hidden via the code @Deltakosh mentioned (lines 8-11).
You might want to check the browser console and see if you are getting any errors with loading the model.
1 Like
Strange now it has worked.