- Home /
UIPrefab from prefab Canvas to live Canvas
So I got a Panel containing some Buttons as prefab, but when I try to Instantiate it, is appears inverted or completely out of position from where i placed it. I assume this happens because the canvas environment I disinged it in is not the same as the canvas that exists while my game is running. How do I compensate for that?
Answer by xxmariofer · Jan 22, 2019 at 08:53 PM
If the prefab it was disigned with a canvas with different render mode or differente UI scale mode its position will change. This has an easy solution, check if after spawned the editor position is in the right point, and everything in its recttrasnform is correct.
Your answer
Follow this Question
Related Questions
Canvas with GUI elements in prefab act strangely 0 Answers
Injecting data into Prefabs 1 Answer
SetActive true not working on UI object 2 Answers
Display text above prefabs in Unity 4.6 0 Answers