Communicating from Blueprint to UI Widget
I have a working blueprint that swaps materials on the floor whenever I left-click and I want to connect this to the widget where a border elelent will appear around the corresponding thumbnail. Here is a video of what it looks like:
As you can see in the video, I would like a white border to highlight the corresponding thumbnail. I created an event with an Integer as an input variable and a different number is assigned to each material. I just don't know how to get this firing off in my widget blueprint. I am trying to bind the "Is Enabled" option but I'm lost as to how to activate it from the other blueprint.
My material swapping blueprint looks like this:
And my widget looks like this:
asked Dec 27 '16 at 07:57 AM in Blueprint Scripting
It looks like the cast nodes isn't connected in the material swapping blueprint. If you want to make them pure, you can right click on them and convert them to pure functions.
Also, you need to select which widget you want to get under "Widget Class" on the Get all widgets of class node.
Follow this question
Once you sign in you will be able to subscribe for any updates here