Hi, how do you get the widget that the widget interaction component is pointing at, to tell it to do stuff?
Thanks.
I believe the widget interaction component has a function/node called GetHoveredWidgetComponent.
Isn’t that for a widget component? I’m trying to access the actual widget.
Right, and from the widget component there is a GetWidget node.
Yes, but that only gives you the widget class that the component uses. What if the widget you’re pointing at is a different widget, which is a child of the main one?
Not true. See the documentation here. GetWidgetClass
returns the class used while GetWidget
returns the actual widget the widget component is rendering. You can think of it as the parent widget.
What have you tried so far? Can you show code/bp that isn’t working?
Sorry, I meant widget object, not widget class.
I have no code to show yet. I think I can achieve what I need with just “Press Pointer Key”. I think I wasn’t understanding correctly what the widget interaction component actually does.
Thanks for the help.