How to deselect a node in Scene Inspector using debuglayer

Hi,
I can select a node in the Scene Inspector using:

scene.debuglayer.select(node)

  • where node could be a sphere.

But, how do I reverse this, and deselect the node, so that it is not highlighted in the Inspector’s scene listing?

Thanks,

I don’t think there’s a way of de-selecting and I don’t think it’s needed. The tools are always available in any context.

Out of curiosity, why do you need to deselect?

Note:

  • You can select Scene in the Tree (which I feel should actually be the default selection).
  • Press R to refresh the sandbox which deselects.

I’ve got my own selection system - that works like Blender selections including multiple objects and I need to link it to the Inspector Scene List.

Could you not send the event with null:

scene.debuglayer.select(null);

also available globally:

window.INSPECTOR.Inspector._Scene.debugLayer.select(null);
1 Like