3d UMG Widgets Highlight on Hover but do not Register Click Event.
Hey guys, I created a 3d Widget following this guide https://docs.unrealengine.com/latest/INT/Engine/UMG/HowTo/Create3DWidgets/ Then I found out I needed to use a Widget Interaction on my Firstpersoncharacter so I added it, and went through and changed the values to Input from mouse and everything. I Also have game mode for both game and ui and still cant get mouse button clicks to work. Each button will highlight with hover, But will not change to red on click. I set up a print string that uses "Get Hovered Widget Component" And even though each button highlights, when i click it sends me the name of the widget Component But not the buttons inside the widget. So the Widget recognizes mouse events, But not the buttons inside the widget. I cant seem to figure out how to get Buttons from inside the widget component.
The only way around this I have found is to make a bunch of Widgets with only a single button in it, then take all the widgets and add them as a component in my Widget blueprint, and then a click on the widget component makes brings me the right button, but still doesn't highlight on click. so i'm referencing the whole component and not the contents of the component. While doing it this way does work, I Cant set texts to change or anything from the widget, and terminals in my game i want to turn off or on, so this makes it even more difficult as i have to have a massive amount of UI blueprints to display just visuals while i work in blue print to actually make the computer do what I want.
I just feel like this isn't the right way to go about it. Maybe I'm missing something simple. Ive looked all over the forum and internet scouring for a solution that Isn't so weird.
TLDR, How do I get the Mouse click to register a click on buttons inside a widget actor blueprint?
asked Jan 25 '17 at 09:18 PM in Blueprint Scripting
Follow this question
Once you sign in you will be able to subscribe for any updates here