Hi,
I would like to place a UI object (Button2) from the code so that it touches another UI object (Button1) on its left side.
Both objects are on the other Canvases (but the canvases have the same settings).
You need to keep the edges touching the objects when changing the resolution/size of the window.
What’s the motivation behind them being on separate canvases?
The described situation is a simplification. In fact, “Button2” is an icon that can appear on any UI element (or maybe next to). It must be on a separate canvas in order not to interfere with “Button1” layout.
FYI: There’s a dedicated UI forum here which has to be better than a general scripting forum.
Sorry.
No need to be sorry, it was just for your information. You’re likely to get more help there sometimes is all.