i have 2 problems with my project.
My joystick and text (canvas items) are in wrong positions after i build my project. And items more little than before i build. (they are become small) (ps: im using anchor)
My second problem is when i turn phone, background has become black. (not all black but black sides are seems)
i will add two photo from game.
I need really help for these problems.
It looks like your UI elements does not scale correctly with different screens. To solve this you can use the Canvas-Scaler .
Read it for better understanding, but in general, you have to do something like that:
The resulting settings should look something like that: IMAGE (suggested canvas settings)
Now you have to test different extreme aspect-ratios AND different resolutions. Luckily, the editor let you do it via the first tab on the Game screen: IMAGE (aspect ratio tab)
So you can adjust your canvas settings and specific UI elements accordingly. If you still have problems with a specific element, check it's Rect-Trunsform settings.
Good luck.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.