Draw widget at specific location

I need to draw a widget at a specific location. i…e think tetris.
The wrap, uniform grid and grid panels can’t quite deal with my layout automatically,
however, I can pretty easily calculate where to draw my boxes so the don’t overlap and I don’t need to worry about aligntment etc however…

This drawing occurs in a bigger UI, so I have a slot that this widget goes in.
So Ideally I want to draw all this stuff using relative X.Y coords and then once it snaps into the socket those coords are relative to the socket .

I tried canvas but I don’t seem to get x,y options.

What is the best way to do this?

this is my widget. Once a box spans a column I need to use alignment to snap the smaller units in place. This is a pain. I’d rather just calculate the X,Y

image

Example- this is what happend if I use uniform grid, basically everything is made the size of the biggest box

the below is a wrap box. and while it works, I have a problem to be able to do this at runtime. I don’t seem to have x,y spaces to place things it looks like it must be done in a sequence for the wrap to work, and I don’t have the blocks in sequence

I tried canvas but I don’t seem to get x,y options.

Set position in canvas lets you draw at a specific relative XY of the canvas. Depending on how you’re approaching it, you may need to get canvas slot first.

The viewport also gives you the option to set a screen position directly. But doing it in canvas is generally much easier / convenient.

Besides that, widgets have transforms that allows you to nudge them around.