In the build for my game, UI elements end up shifted over with certain window dimensions. What are the “best practices” for keeping them in the right positions? Can we just limit dimensions to a 16:9 ratio in PlayerSettings, or will that have some bad consequences in some cases? The build is PC only right now, so at least there aren’t a huge range of dimensions that the end user will likely use.
1 Like
Anyone know the best method for this? The main problem is fullscreen mode, since this will result in different dimensions on different machines.
If you’re using Unity UI then you can easily align various things in your UI using rectTransform anchors and pivot points and levels of nesting. You can use canvas scaling to resize things as you need per platform or aspect ratio if needed, and perhaps use tools like nested layout containers to help constrain layouts within particular limits.