WHAT’S THIS? #
It’s a widget that lets players modify the touch interface in real time. Depending on the settings imposed by the developer, they can modify the position and size of the layout component that make up the touch interface.
The Layout Modifier widget allows you to display and edit a layout, but you’ll need to develop the controls for modifying the position and size of a layout component within a blueprint widget.
The widget does the following:
- Displays the selected layout.
- Detects the selection.
- Contains all the necessary functions to edit the position and size of a layout component.
- Loads and saves the state of each component in the layout.
What you need to do:
- Create a blueprint widget and add the Layout Modifier widget.
- Create the interface for modifying the position and size of the components. This could be a slider, a numeric input, etc. Note that the Layout Modifier has a built-in function for modifying the position and size of a component by touch.
An example of how to use the layout modifier is included with the plugin. You can use the WB_TID_LayoutModiferExample widget directly to modify your layouts, or you can use it as inspiration to develop your own.
HOW TO INTEGRATE IN YOUR PROJECT? #
- Create a widget, this could be your own widget for setting the parameters of your project or game.
- Add the Layout Modifier widget. In the palette, it’s in the Touch Interface Designer category.
- Set it up as you wish.
HOW TO CONFIGURE? #
To work, the layout modifier needs to load a backup of your touch interface. I call this a configuration or layout.
- You must therefore first save your touch interface at any time using the “Save Configuration” function in the subsystem.
- You can then load a backup by calling the “Load Configuration” function from the Runtime Configurator widget.
- Your touch interface appears and you can start editing it. Either opt for touch or develop your own ways of modifying the touch interface, with sliders for example. The widget includes functions that let you do just that.
- Once you’ve completed your modifications, you can call up the “Save Configuration” function from the widget to save the changes.
- Lastly, if you want to display the changes on your touch interface, either create a new one, or call the “Load Configuration” function from the subsystem. This will rebuild the touch interface, taking the modifications into account.



