Download

Using Widget button to trigger actor blueprints

Hello hello, i am designing a ‘sort-of’ UI for touch input.

>>>>>I have a few actor blueprints. Currently i am toggling the visibility of these cubes by the ‘tab’ key

>>>>>On a tablet there is no keyboard, so i am thinking of toggling these cubes via a ‘button’ on widget blueprint

>>>>>I tried to use blueprint interface

>>>>But i am unable to set the actors like usual if i am using an actor blueprint. Is there anyway i can achieve this?

You could make an event dispatcher in your HUD, bind it to an event in your world after you add the HUD, and call the event from the HUD.

9f65e6350cf6fe6e0fdf3d74fd0198bc8b9e2e2a.jpeg

1bfbbf6989c6ad2d68806f30770869443717c1b8.jpeg

well or a interface “get all actors implementing interface” and stuff