![]() ![]() If pixel-perfect is enabled (and an orthographic camera is used to render the controls), then the controls will always display at a 1:1 pixel ratio on start, regardless of resolution. If the resolution changes after the scene is loaded for some reason, you can update the relevant controls by calling SetCamera(), which re-calculates their world-space size to be pixel-perfect.Īs for repositioning, the easiest way to handle it in a situation like the iPad where you know the two possible aspect ratios is to put your controls under a single parent GameObject, and then just have a position for each possible aspect ratio and set it in Awake().
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |