[UMG] How do I make a Widget for a small item such as a button?

Hey guys,

So when I make a widget, I can’t just add a button/text/etc without creating a huge canvas panel first (otherwise the button and such can’t be resized).

I’m trying to dynamically add this stuff in another widget. I don’t want to add a full-size canvas panel, just a few small elements.

Can widgets be used in this way? Seems they’re only for collections of full-screen stuff (i.e. an entire HUD in one widget).

Thanks.

Hello,
not sure this what you are looking at but slate widget style is independant and have all buttons infos and you can select it in all widget blueprints.

oe maybe you look at something like : [Tutorial] Health Bar tutorial - Community Content, Tools and Tutorials - Unreal Engine Forums ?

This one is more than fair too :UMG Tutorials ( Introduction and data binding ) - Community Content, Tools and Tutorials - Unreal Engine Forums i used it for my basic main menu. it has only buttons and a pic in a corner for the fun. Board games : shogi chess checkers and more ( if i can ^^ ) - Work in Progress - Unreal Engine Forums

I haven’t played around with UMG yet, but since it uses Composition and Layouts (similar to Qt or other UI frameworks), you probably have to go the canvas route. So you would have to build up a few nested layouts on your canvas and then put your widgets in there accordingly.

I am just taking an educated guess here though.

I’m actually also interested in this, still have not found a way to position widget, instead of applying it “full-screen”.