- Home /
Question by
marijan10vk · Jan 22, 2018 at 10:39 AM ·
androidobjectsspawningrandom.rangescreen size
Make Objects spawn within different screen sizes
I am new to Unity and I stared developing a game. The asteroids I want to spawn are spawning correctly on my phone 720*1280px but on my brothers phone a galaxy S8 it gets messy. This is my code for spawning asteroids. How to get the proper values for different screen sizes?
Instantiate(asteroid1prefab, new Vector3(Random.Range(-2.5f, 2.5f), 6, 0), Quaternion.identity);
Comment
Your answer
Follow this Question
Related Questions
White textures when objects are really far away on android? 1 Answer
Spawning Objects 1 Answer
i want tospawn objects 1 Answer