How can you close the node materials editor from code - using button or keypress event?

Hi,

I can open the node materials editor from code using: myMaterial.edit();

This means that I could have a gui button that just opens the editor when the user clicks on it.

The problem is closing the editor.

How can I close the node material editor from code when the user clicks a gui button.

https://playground.babylonjs.com/#6QWN8D#218

Thanks.

Hello !

Found it here :

NODEEDITOR.NodeEditor._PopupWindow.close()

Thanks.