Hello, I’m new to Unity. In P5 the coordinates are locked to screen resolution but that is not the case in Unity. If I wanted an objects coordinates to be exactly 1/4 of the way across the screen in P5 i would just set its x coordinate to Screen.width/4. However that value will be way larger than the actual targeted coordinate in Unity. If there is some way to reference the screen length in coordinate units in unity that would be awesome.
Things can get from world to screen via many paths such as Camera and Canvas.
Camera will have its own settings controlling how those two coordinate systems map. Obviously the Camera will also live on a Transform and that Transform gets a vote.
Canvas has some of the settings but CanvasScaler also gets a vote.
There are many other ways for mapping between them such as the new UI Toolkit and old IMGUI.
Here are the official docs on how to make your UI handle various resolutions and aspect ratios cleanly:
https://docs.unity3d.com/2023.1/Documentation/Manual/HOWTO-UIMultiResolution.html
Here are some notes on UI Anchoring, Scaling, CanvasScaler, etc:
Thank you I will check it out