UnrealUiControllerGenerator
This app has been replaced by a plugin directly in the Unreal Editor instead: https://github.com/kirby561/UmgControllerGeneratorPlugin -- This is a very simple WPF application that generates a UI controller from a widget blueprint hierarchy in Unreal Engine.
Install / Use
/learn @kirby561/UnrealUiControllerGeneratorREADME
Deprecated
This app has been replaced by a plugin directly in the Unreal Editor instead:
https://github.com/kirby561/UmgControllerGeneratorPlugin
Unreal UI Controller Generator
This is a very simple WPF application that generates a C++ UI controller from a widget blueprint hierarchy in Unreal Engine.
The motivation for this was to make it faster to make widget blueprints in the Unreal Editor and be able to have a corresponding C++ controller for adding logic or dynamic behavior. To use it:
- Copy/Paste the "widget hierarchy" from within the Blueprint editor (Select the root node, press Ctrl+A, Ctrl+C):
- Paste the hierarchy into the input textbox in UnrealUiControllerGenerator
- Enter the name of the controller (probably just the Widget Blueprint Name)
- Enter the WBP reference path (right click the Widget Blueprint in the Unreal Editor->Copy Reference. Paste and remove everything but the path. For example: "/Game/Editor/UI/WBP_EditorPartDetails')
- Select Window, Attach or Create depending on your use case.
- Window will make a controller with AddToViewport and RemoveFromViewport methods. These can be used to show/hide the widget as an independent window.
- Attach will make a controller with an Attach method meant to attach the controller to an existing widget to provide access to its elements.
- Create will make a controller with a Create method that will just create an instance of the widget with access to its elements.
- Select an output path where the .h and .cpp files will go
- Press Create!
Building
This project has no dependencies except Visual Studio 2022. Open UnrealUiControllerGenerator.sln in VS2022 and build/run.
