- New Project
- New Widget BP
- Add a sizebox in the canvas panel of the Widget BP, set the anchors to center, set the PositionX and Y to 0.0, check the ‘Size To Content’ option, and set the Width:150, Height:30 (for example) PIC
- Next add a Scrollbox to the Sizebox, Check the Is Variable option, set the orientation to horizontal (not required), Scroll Bar Visibility: Collapsed…
- Add just enough Buttons(5) to the Scrollbox so that the last is hidden(and the scrollbox becomes scrollable)
Thats enough with the Designer Tab.
In the Graph Tab…
- Add a function called “OnKeyDown”
- Add these nodes into the function
- Compile&Save
- Add the ‘New Widget BP’ to viewport
- Play
- Scroll the Scrollbox to the end.
- Press the Backspace Key
- See how the printed value is not 0.0 as it should.