Hello! I am very new to UE and am trying to use the blueprint system to set up a 2D game level where I drag a puzzle piece into the space on the board. I followed UE’s “Creating Drag and Drop UI” documentation tutorial, but it used the example of dragging and dropping a progress bar and when I tried to replace that with either an image of a puzzle piece or a button neither worked (the image dragged but turns into a large white square when it moves, and the button doesn’t move at all).
Attached are my blueprints from the tutorial (“health bar” is the puzzle piece widget before I changed the name).
- the image needs to show something (an icon, I presume) so it does not appear white
- the image needs wrapping with a Size Box specifying the size its child must conform to, so it can correctly report it while dragged
and the button doesn’t move at all
Avoid dragging native buttons and doing anything to them that may seem unbutton-like. Think of them as of fire&forget click&release trigger that looks pretty and makes a sound. If you need a more nuanced clickable element, create a User Widget and place a border / image inside. You can then override onMouseDown / onKeyDown and so on.
1 Like