axmol/extensions/Inspector
Deal f4c3556039 Inspector: remove dup 0x prefix for object address 2023-09-13 20:42:49 +08:00
..
CMakeLists.txt Add extension Inspector (Experimental) (#1324) 2023-09-12 01:06:28 +08:00
Inspector.cpp Inspector: remove dup 0x prefix for object address 2023-09-13 20:42:49 +08:00
Inspector.h Add extension Inspector (Experimental) (#1324) 2023-09-12 01:06:28 +08:00
README.md Add extension Inspector (Experimental) (#1324) 2023-09-12 01:06:28 +08:00

README.md

Inspector

(Experimental)

  • Visualize node tree in real time
  • Edit node properties

Usage

call openForScene(ax::Scene*) in your onEnter overload and close in your onExit overload. Dont forget to call Scene methods.

#include "Inspector/Inspector.h"

class MyScene : public ax::Scene {
        virtual void onEnter() override {
        ax::Scene::onEnter();
        ax::extension::Inspector::getInstance()->openForScene(this);
    }
    virtual void onExit() override {
        ax::extension::Inspector::getInstance()->close();
        ax::Scene::onExit();
    }
};