I want to scale or set the height,width to fit screen size. I can do it by inspector using anchor preset,Same thing I want to do it by script.
My Canvas setting is Renderer Mode :- Screen Space - Camera , UI Scale Mode :- Scale with Screen Size.
![alt text][1]
![alt text][2]
[1]: /storage/temp/79267-2.jpg
[2]: /storage/temp/79268-1.jpg
↧