axmol/extensions/Inspector
Purple eb0e6ef50d
Added glyph ranges manager for ImGuiPresenter, added ability to use glyph ranges for Inspector's font (#1936)
* Added glyph manager for ImGuiPresenter

* renamed glyph ranges constants

* for static code conduct

* for code of conduct 2

* removed some duplication and better format

* removed extra space
2024-05-29 23:56:03 +08:00
..
src/Inspector Added glyph ranges manager for ImGuiPresenter, added ability to use glyph ranges for Inspector's font (#1936) 2024-05-29 23:56:03 +08:00
CMakeLists.txt Change extension folder structure to reduce file name conflicts (#1647) 2024-02-03 10:08:22 +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();
    }
};