- Home /
Prefab Instance changing when loading scene in editor
For some reason when ever I load one of my three scenes which share a prefabbed ui, three elements of the ui (canvas game objects, with canvas group components) switch their anchor points from center/middle to the bottom/left preset and get set to seemingly random positions. If I revert the prefab they go back to their intended positions/anchor. It only seems to happen with these three elements. The elements in question are parents of text fields which display "Mission Success", "Mission Failure", and "Repairing Ship." The only time I access the canvas groups in question outside of the editor is in a script which sets their alpha values to make them visible/invisible when appropriate.
I have no idea what's causing them to change when I load up a different scene, and I can fix it by reverting to the prefab, but its becoming very tedious to do this for every scene before building to test out the game.
Your answer
![](https://koobas.hobune.stream/wayback/20220612102729im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
[SOLUTION] set UI RectTransform Anchor Presets from code c# 1 Answer
Transform translate not working properly in Canvas 0 Answers
Finding an objects position from one canvas to the other 1 Answer
Get Rect in Screen Space from RectTransform (Screen Space - Camera) 1 Answer
How to change anchor? 1 Answer