Hey,
Developing for VR and making use lots of WidgetComponents. Just came across an issue when disabling a button after it was PRESSED (not clicked) that works out differently depending on the WidgetComponent you are on.
Was able to reproduce it in a blank project.
Issues: Buttons not highlight, not firing.
- Make a new project, shooter setup
- Add WidgetInteractionComponent (WIC) to the FirstPersonGun on the Character (or to the MotionControlerComponent of a VR project)
- Set up any button you like to make WIC->PressPointerKey(LeftMouseButton) and the same for ReleasePointerKey
- Create two Widgets, add some buttons to each
- Make each button fire a PrintString
- One button disables itself when PRESSED (not clicked)
- another button (same widget) reenables the button
- Make an Actor, add 2 WidgetComponents, set the 2 widgets
- Place the actor in the world
- play
- press the buttons that disables itself
- see how no button is highlighting anymore
- press a button on the SAME WidgetComponent as the disabled button - button will fire. Everything is working again (highligthing/pressing)
- reenable the button
- press the button that disables itself
- see how no button is highlighting
- press a button on the OTHER WidgetComponent
- see how the button animation for press is drawing but the string is not printing
- press the button again and again WITHOUT leaving it!
- see how nothing does happen
- leave that button, everything is back to normal (highlighting/pressing)
Issues does not appear when the button that disabled itself is disabled ON CLICK.
cheers