axmol/extensions/Inspector
RH fc67e58646 Imgui and Inspector enhancements (#1396)
* [imgui] Add support for displaying images correctly that are rotated in texture atlas
[imgui] Add parameter to select if displayed image maintains aspect ratio
[imgui] Move static methods to anonymous namespace
[imgui] Minor code clean-up

* [imgui] Add support for displaying SpriteFrame

* [imgui] Update test to show usage of ImGuiPresenter::image helper methods

* [Inspector] Show image of selected sprite
2023-10-20 19:22:49 +08:00
..
CMakeLists.txt Fix win32 dll build 2023-09-29 17:13:35 +08:00
Inspector.cpp Imgui and Inspector enhancements (#1396) 2023-10-20 19:22:49 +08:00
Inspector.h [Inspector] Fix crash and add enhancements (#1394) 2023-10-19 15:31:01 +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();
    }
};