If I try to make lines (using simple UI panels) that are 1-2px thick, they will randomly grow/shrink as the canvas scales if its set to Scale with screen size, which makes sense. However this causes them to completely dissapear sometimes.
Using Constant pixel size on the Canvas “fixes” it but is not really an option since it wont scale well on different resolutions.
Is there no fix for this? Its really annoying that I cant add small nice details to my UI.
Please does somebody know how to solve this? Have been trying to get this question answered for over a year. It always gets ignored. Surely I cnnot be the only one who needs both thin lines and scaleable UI?
What if you adapt the size inside the code? For instance, if the current resolution is half the reference resolution, then you know unity will divide the thickness by 2. You make the line 2 time thicker to compensate.
After some testing, resolution does not change when windows is re-scaled. So what I think I need to do is take the current height of the screen and check the difference between that and the reference resolution height.