πŸŽ“Controlling the main window from a Multi Window

1

πŸ“„ Requirements

To have a basic understanding on how this plugin gets used

2

βž• Creating the widget

  1. Locate your content browser (If not visible, press CTRL+Spacebar) and create a widget blueprint. Then select β€œUser Widget”. After that, open the widget blueprint by double-clicking on it.

  1. In the widget, add a canvas panel and a button. Then select the button.

  1. Make the button expand the whole canvas panel by setting the anchors and tweaking these values. You can also make the button invisible by setting the background opacity to 0. Then create an event whenever we click a button.

3

πŸ’» Creating the window

  1. In pretty much any blueprint you like (I used the level blueprint) you need to create a new multi window and input the widget we just created. You can feel free to change the settings of the multi window.

4

βž• Creating the blueprint

  1. Then locate your content browser again and create an actor blueprint

  1. In the actor, we will add a cube which we will later rotate based on the mouse input of the user

  1. Drag the actor into your level

5

βž• Adding the functionality in the widget

  1. Flip Flop a bool on button click

  1. On Event Tick you want to check if the rotation is active and get the mouse position on the platform. Then on Do Once, save the position of the mouse.

  1. Then get a reference to your blueprint. You could call any function of the blueprint from here but I will just add world rotation. Then make sure to set the last position variable again.

6

πŸ”₯ Final Result

7

πŸ™ Final Words

Are you enjoying this plugin? Then don’t forget to leave a review to support the creator!arrow-up-right

Last updated