Set an actor from interface into a widget
Im trying to set an actor in a variable into a widget from an interface call. The variable returns nothing.
Is there a problem to send a message to a widget? Im doing the same to a BP and it works.
asked Mar 22 '17 at 04:51 PM in Blueprint Scripting
You need a reference to your widget to call an interface on it. At the moment you are calling the interface on the hit actor.
Interfaces don't work in the same as Event dispatchers - they need a target.
If you have a number of widgets on screen that you want to set the actor in, replace the Get with as ForEach, but if there's just one, this will work. That will work on any Widget that is a child of UserWidget
answered Mar 22 '17 at 05:12 PM
No, im doing a VR house with customizable elements so i have many more BP actors.
answered Mar 22 '17 at 05:58 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here