Scripted Editor Windows
Scripted Editor Windows let a compiled script expose an ImGui-powered editor tab inside Modularity. You export two C-linkage functions, the engine discovers them, and it will call your render hook eve
Required Exports
Example
#include "ScriptContext.hpp"
#include "imgui.h"
extern "C"
{
void RenderEditorWindow(ScriptContext& ctx)
{
ImGui::Text("Hello from script!");
if (ImGui::Button("Log"))
ctx.AddConsoleMessage("Editor window clicked");
}
void ExitRenderEditorWindow(ScriptContext& ctx)
{
ctx.AddConsoleMessage("Editor window closed");
}
}Build + Placement
Using It In The Editor
Notes
Last updated
Was this helpful?
