Unity UI 5.3 - Getting anchoredPosition of RectTransform on Start
Just as the title suggests, I would like to get the anchoredPosition of a RectTransform on start, snapping one object to another's location.
The method I've been using works fine in the Update() function, but I would like the snap to happen when initializing -- the problem is, in Start() and Awake() what I believe to be happening is that for some reason it's grabbing the parent's position and snapping it to that point instead (though I cannot confirm this is the case).
I'm simply setting one RectTransform's anchoredPosition to another's, within the same layer of the hierarchy (sharing the same parent).
Suggestions? Thanks!
Your answer
![](https://koobas.hobune.stream/wayback/20220612075702im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to write actual text into game play 2 Answers
Proper way to wait until dynamically added children of a layout group are rendered 0 Answers
Unity 5.3 UI Button wont set Select state via script after the parent has been set inactive 0 Answers
How can I position a rect transform inside another via code? 0 Answers