UMG Questions

Hi everybody,

I would like to ask you some questions about UMG and its communication with Blueprint.

I would like to be able to interact in my scene with the buttons for example I would like to create a button to make an object disappear when I click on it.
The only thing I’m able to do for now is to make a console command (the one in the Epic demonstration).
I tried to make a custom event in my blueprint that makes the object I want to disappear but I can’t use it in my UMG’s binding button :frowning:

Also is it possible to play an animation create in my widget blueprint (I can set keys an animate but it does not play my animation when I press my button to make my menu appearing.

Thanks in advance,

Denis

have you tried the multicast event on this thread? sorry I’m not familiar with this yet, but as with other experimental feature, if you have any feedback, better let Epic know in AnswerHub.

There is several ways you can do something like this.

First of all you can get all actors using a certain class or interface in your Click event binding, and call a function on them. So you could find the object, (or objects) then call a function to make them fade.

Another possibility is using the Game Instance, have a variable that contains a ‘State’, so when you click the button you set the state, then in the tick event anywhere on the object you want to disappear or your level blueprint, look for that state and make it disappear when it becomes that state.

The last one, which I haven’t tried, is after creating the Widget in your level blueprint, bind the Button from the Widget to a new event in the level. Theoretically that will work.