- Home /
Question by
Slimmper · Nov 13, 2018 at 12:34 PM ·
uirecttransformanchor
Convert RectTransform anchored position to other position with other anchors
I have ui container with element (anchors min(0,0) max(1, 1)) and i want to convert this anchoredPosition to anchoredPosition with other anchors (for examle (1,1),(0,0))
Which formula can help me to convert this values?
RectTransform doing it internaly, but i want to implement this function in my script, without modifiring any rectTransform values. only get converted value of anchoredPosition.
screenshot-10.png
(17.3 kB)
Comment
Your answer
Follow this Question
Related Questions
Anchor doesn't affect objects inside of another object 0 Answers
RectTransform outline and position aren't synced 0 Answers
Stretching 90° rotated RectTransform to the size of the Canvas 0 Answers
Positioning UI object inside screen space 0 Answers
Strange UI scrollbar handle recttransform behaviour,Cant resize clickable area on UI handle 1 Answer