- Home /
how to resize different sprite into same size and assign to a game object ?
I want to resize sprite to same size and assign to my gameobject so that all sprite look a like
my code is below`
%|-1861673298_1|% %|1456770366_2|% public Sprite img1; %|524112416_4|%
void Start()
%|1415432336_6|% %|238004631_7|% %|449706484_8|% %|385360838_9|% %|1152204952_10|% %|769354091_11|% %|-782662156_12|% %|1999571366_13|% %|-473783116_14|% %|1892526277_15|%
` when i am changind my sprite in update function the sprite becomes so big as img2 is large scale sprite .but i want to img1 and img2 be same size when it renders in gameobject these . But i have no idea how ot maintain a certain value it would be very helpful if any one can help me here to resize both sprite to same size;
Your answer
![](https://koobas.hobune.stream/wayback/20220612091244im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Cant access the Image icon from class 1 Answer
Fire emblem like path drawing for a 2D tile based strategy game? 0 Answers
Cant acces an image icon from class 0 Answers
How can i change the sprite image of button in run time of a 2d game 1 Answer
How do i change the sprite on a sprite renderer without changing the size? 1 Answer