- Home /
Canvas, instantiate and adjust size of image to fit parent
Hello everybody, Basically I want to instantiate an Image and make it fit in a panel.
I can instantiate my Image, set it as a child of a specific panel and then change its anchoredPosition to (0,0). Making mi image apear on screen on my desired position.
The problem is that when I increase the resolucion or hit the "maximize on Play" button, my image appears but doesnt change its original size, so it looks smaller .than the panel.
I need to know how to change its size to adjust to the dimesions of its parent.
thanks everybody
Your answer
Follow this Question
Related Questions
Image on UI doesn't stretch when objects it's on is stretched. 0 Answers
Two panels to fit the size of the parent panel in Portret mode. 0 Answers
Ui image appear and disappear on trigger 1 Answer
Display loaded UI Image in Container with native size 0 Answers
Instanciate prefab responsively 1 Answer