but it doesnt work (which is obvious for experts). Do anyone know how to swap images position with a simple method ? or just how to move a image to another one’s position. Thx.
name.GetComponent<RectTransform>().AnchoredPosition = new Vector2(name2.GetComponent<RectTransform>().AnchoredPosition.x, name2.GetComponent<RectTransform>().AnchoredPosition.y);
Anchored Position is a Vector and you can’t just assign a value of a Vector like assigning int value
I knew the trick to swap basic gameobject position with 1_temp.
I tried the answers but the image dont move because the 2 images seems to have the same anchoredposition (both surrounded by their own rect transform).
I found the solution : they have to have the same “rect transform” to make it work, or/and the same “canvas” I dont know. But in my case the responsive dont work fine anymore. So hard to deal with those “images” t_t
Something like that would work, yes
– Adam-Mechtley