Change Touch Interface at runtime

I need Touch Interface enabled on some levels but not on others. How can I enable/disable it via code?

Additionally how can I change the interface dynamically so it looks different during runtime. I know I can set this in Project -> Input settings but I’d like to be able to do this at runtime.

To disable the touch interface, either call the “Remove All Widgets” blueprint node at runtime or go to “Project Settings > Engine > Input > Mobile” and clear Default Touch Interface so it is not automatically created.

To create it at runtime, call Activate Touch Interface on your Player Controller.

2 Likes

activate touch interface does not work

it works just put it in a new player controller bp

it works for me from 2nd floor’s idea.

Make it in Player Controller