Question by
SinglePaper · Feb 05 at 04:13 PM ·
2d2d gamegeneration
Spawned Prefabs scale at random it seems,GameObjects are seemingly arbitrarily scaled differently
Hi,
I'm currently working on a 2D top-down project, but my Scene view differs from my Game view. Specifically , some objects have different sizes than they're supposed to. Does anyone know what could have caused this? I have used the following code to create them:
Instantiate(templates.topRooms[rand], transform.position, templates.topRooms[rand].transform.rotation);
rand is just a random number between 0 and length of topRooms
templates is an object that contains lists of all of the rooms
unt1itled.png
(37.8 kB)
unt1itled.png
(37.8 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613052640im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Speech bubbles 1 Answer
Keyboard input to Mobile Input 0 Answers
"Invalid argument"? 0 Answers
Spawned game object does not carry the Animator component 0 Answers
Rendering of 2D Map very slow, what am I doing wrong? 1 Answer