Should I create my own Inspector Pane for my custom game engine, or use the one from Babylon.js Inspector?

I can’t find it, but I’m pretty sure I’ve seen a few months ago here on the forum, a project where someone was working on a custom scene inspector. Maybe you’ll find it :slight_smile:

Changes will be deleted if you reload the page. If you want it persistent, you need to add yourself a layer of save + load.

Also, FYI, if you want to tweak some params and then copy them in your code to make them persistent, here are 2 tools I added to the inspector a few months ago :

  • The copy icon you can find on the right of each param copies a line of JS code which sets this param to this value. For example :
    globalThis.debugNode.position = new BABYLON.Vector3(0, 1, 0);// (debugNode as BABYLON.Mesh)
  • Each time you select a node (in the previous example, a mesh), the global variable globalThis.debugNode is set to this node. So that you can now use it in the debug console, to directly work on it, without stuggling to programmatically retreive it uppon the scene hierarchy

++ :slight_smile:
Tricotou

1 Like