I met a problem. I could make the button in the center of canvas panel in widget. However, after running, the button is off the center. Does anyone know how to deal with it?
Are you anchoring the button to the center of the canvas?
Hey there @Yilong123456! Depending on how you align your elements on the canvas define where it will be based on screen size. For something dead center, you’ll want to anchor it in the center.
Yes, I did it but it was still not working.
Once you anchor, set the translation of the element to 0 in the details panel. Than, to get it perfectly in the middle, set your translation to minus half of your elements x & y scale. E.g. Scale = 40, 30, translation = -20, -15.
Send a screenshot if that doesn’t work.
I agree with TeaLegend, if that doesn’t work could we see your widget setup?