Hi Aliensa
You can set “Consume Mouse Wheel” directly in the details panel like this:
If you are creating the scroll box at run time, setting this requires a custom scroll box class. For some reason, the dev team never exposed a “Set Consume Mouse Wheel” function to blueprints, which means you cannot dynamically set it at run time.
To get around this, you can create a custom scroll box object, disable “Consume Mouse Wheel” by default, and use that object instead.
-
In the content browser, right click → Selelct “New Blueprint Class”.
-
Expose all classes and search for “Scroll Box”
-
Open the widget class you have just created and set the default value for “ConsumeMouseWheel”
-
Go back to your main widget blueprint graph. Instead of creating the normal scroll box, create an instance of your object instead. Right-click → Construct object from class → Select your custom class
Do a simple print just to test:
Note you can also use your custom scroll box in the widget designer as well. Just search for it in your pallet.
I hope this helps.
Good luck!