Get a Button widget to open a door.

Hello everyone,

I’m a total newbie with a simple problem that I can not figure out.

The situation:

I’ve been tasked to explore the option of building an interactive brochure. My idea was to scatter clickable widgets around the product ( see screenshot ) to trigger an animation ( open the two doors in the front, which Ive done using an actor blueprint )

What I’ve done:

Set up an actor blueprint with a custom event that, ideally, triggers the timeline.

Made a widget with a button that should trigger the custom event in the blueprint above.

And here is the point where I’m stuck. I want to have a lot of those widget buttons that can trigger all kinds of animations, but I don’t know how to connect the “On clicked” even from the widget to the custom event of the Doors-actor.

It’s probably very easy, but I have NO experience, youtube is confusing, and Reddit is being less than helpful.

Thanks in advance.

Hey @CrustyFlakes! Welcome to the forums!

I found a few things that you can go through to learn how to do this- telling you step by step here would leave you wanting next time you need to do this for this project. :slight_smile:

Firstly, the documentation explaining how to communicate between actors (widgets count). KEEP THIS it’s SO helpful even when you’re more advanced.

I also found this recent tutorial that should give you a good example to build off of!

https://www.motionforgepictures.com/unreal-engine-5-control-blueprints-with-widgets-ui-interaction-tutorial/

Disclaimer: This link is not associated with Epic Games, Unreal Engine, or their partners.

Hope this helps, let us know how it goes!

1 Like