Download

UMG instance in plugin

I am currently creating a plugin and I want to have a Widget Blueprint that can act as a template for users of the plugin. At present, the user could take a copy of the Widget Blueprint that’s bundled with the plugin in the Content folder, but that seems a clunky way of doing things. Ideally, I would like to have an instance of the Widget Blueprint created in the editor (including the layouts and logic in the graphs), but I’m not entirely sure how to do this. My other assets are defined in C++ and created using factories in the editor. How would I go about doing this, but using the existing Widget Blueprint that I have bundled with the plugin?

Any advice would be greatly appreciated.