How to right get global position from RectTransform in ...LayoutGroup?
I have a rectTransform object (called - target) which has "ignore layout" by LayoutElement component. This object is a child of HorizontalLayoutGroup which a child of VerticalLayoutGroup. So I need to know target's global position. Crossing the Internet and forums I found one solution for that, take a position after waiting EndOfFrame on a coroutine. When the object creates in first time target has a right global position, but when I try to take it again, I have a different one. Target and all of his parents are static objects. So what's the problem? Do you have any ideas?
Your answer
Follow this Question
Related Questions
Repositioning an object in Unity 2020 via UI button 0 Answers
Runtime GUI Positioning - Making Chat 0 Answers
Instantiating UI buttons relative to text above? 0 Answers
RectTransform Left Right Bottom Top 0 Answers
UI Resets Position After Saving 0 Answers