Single pixel line with canvas scaler,Single pixel line with canvas scaling
Hi, I am using CanvasScaler set to Scale With Screen size, reference resolution is set to Full HD (1920 x 1080), Screen match mode is set to expand.
How do i create a line, which will always be 1px wide no matter which resolution user uses? I would like to use the lines as a dividers, but i have not been sucessfull so far. When i created an image with width = 1px, then in some resolutions the "line" starts to flicker and it ends up with not showing at all.
Only solution i have found is https://gamedev.stackexchange.com/questions/152367/drawing-a-1-pixel-thick-line-in-unity, but it uses "constant pixel size" mode, which i cannot use to always keep all the information i need on the screen.
Your answer
Follow this Question
Related Questions
Not correct ui scaling 0 Answers
How to scale images corectly? 1 Answer
1080p and horrible blurry elements 1 Answer
iPhone 5/6 and 6Plus 0 Answers
How to create a scrolling menu that scales to all screen sizes 2 Answers