- Home /
Question by
turkiyecng · Mar 30, 2015 at 09:19 AM ·
uiinstantiateprefab
UI prefab instantiation problem
I want to instantiate a UI prefab from Resources and append it to canvas but there is a problem with that After instantiation scale and position values of prefab in rect transform component how to solve this ?
Comment
Answer by _joe_ · Mar 30, 2015 at 12:25 PM
Simply change the order of your code.
Set the Parent and Then fix the scale.
Your answer
Follow this Question
Related Questions
Instantiated UI prefab in canvas does not render image 1 Answer
Is there a way to Instantiate a button prefab as a child of a Canvas? 2 Answers
Having trouble with cloning with prefabs 1 Answer
How to change Image on button click in a prefab that is instantiated 1 Answer
Layout Group not working when instantiate from prefab 1 Answer