How to make an image stretch over two buttons?
Hey, i created an UMG widget which consists of multiple buttons(each button is an inventory slot consisting of button and an image). Is there any way we can make a single image texture(say for example weapon image) stretch over two buttons so that player knows that weapon occupies two slots? Also these slots are children to the uniform grid panel which are arranged in 5x4 fashion. Thank you in advance.
asked Oct 31 '18 at 09:29 AM in C++ Programming
There's no built in way to do this. You'll either want to author your content with this in mind, or dynamically adjust your images on the fly as you assign them as backgrounds to your buttons.
answered Oct 31 '18 at 04:11 PMBrian Johnstone (suspended)
Not sure if you can bleed past the edge of the grid cell but when I want to do this outside a grid I wrap the two buttons in an this and then wrap the hbox and and the image in an overlay widget which allows them to to overlay each other so the image can stretch across both buttons.
answered Oct 31 '18 at 10:19 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here