Get the Touch Interface Subsystem, it will allow you to perform operations on your touch interface.
In Blueprint
For more information about the Touch Interface Subsytem, read this
Simply call Add to Player Screen node on Touch Interface Subsystem. There are three parameters on this node :
- PlayerController : Virtual Control Designer needs an instance of a player controller to work. You can use the Self node if you are in the PlayerController class otherwise you must retrieve the PlayerController associated with the player.
- NewTouchDesignerInterface : Select your Virtual Control Setup asset that you want to add to screen.
- State : State is a structure that contains data that will be used only for the initialization of the touch interface. You can either create a new structure with MakeStruct or just right click on the parameter and split.
- Is Visible : Touch Interface is visible or not when added on screen. Note : Note : If not visible, input is obviously disabled.
- Block Input : Virtual controls respond or not to the user interaction when Touch Interface is added to screen.
- Block Gesture : Same as Block Input but for Gesture.
- Load Configuration : Enable this parameter if you want to load a configuration that has been previously saved.
- User Index : Used only when Load Configuration is equal to true. Specify user index for loading configuration.
- Config Index : Used only when LoadConfiguration is equal to true. Specify the index of the configuration that was used to save the configuration