How To Change GameObject Position Base On Screen Size?
Hello everyone, i'm trying to change my game object's position base on screen size, but i still cannot figure out how to do that, here is an example:
as you can see i have some circles on the screen in 1334x750, and when i change the screen size:
The circles changed its position, a circle get inside the screen and i don't want that, i want all gameobjects stay at the same place like the screen in 1334x750, thank you for reading.
Answer by dan_wipf · Apr 01, 2019 at 05:48 AM
do not use fixed scale of the screen, use 16:9 ratio or an other aspect ratio, this will solve this issue
well you have to re setup everything.. but for future handling screen resolution, it will adapt your scales and positions, regardless what resolution you’ve chosen when you play the game
Can you be more specific on how to re-setup everything, if you have a video or two i will be very appreciate and thank you for your replying. P/S: All the circles in my screen are game objects not UI Elements
Your answer
Follow this Question
Related Questions
How can I scale UI text per resolution? 0 Answers
Make RawImage on canvas look at gameObject 0 Answers
Vector move based on screen size 0 Answers
Screen Dimensions Changing on Input and Breaking UI 1 Answer
Phone app Resolution and Screen Size 0 Answers