Unreal Engine 4 Widget that can be placed within other widgets to provide customizable layout during runtime
- Changing widget position during runtime.
- Save current widget position automatically and load it when running the game again.
- Lock widget position, prevent accidentally moving.
- Snapping widget to widget and/or widget to vertical and horizontal middle of screen.
- Widgets cannot leave viewport.
- Customizable, all features can be enabled and disabled as required.
Setting up the widget doesn't require any additional work in blueprints, just add the widget to any existing User Widget or create a new one and just add it.
For creating a new widget:
- Add a new User Widget to your project.
- To the Canvas Panel add a new Overlay widget.
- The the new Overlay widget the CUL_Frame widget as first child.
- Set the CUL_Frame to span the Overlay vertically and horizontally.
- Continue adding elements to the Overlay as required.
- Run the project.
A small tutorial on how to set up the widget can be found here: https://youtu.be/MvB0rJP8Jnc
Have Fun!