Unity-UI-Extensions / com.unity.uiextensions

https://unity-ui-extensions.github.io/
1.26k stars 135 forks source link

UI Line Renderer can't draw a smooth line #289

Closed SimonDarksideJ closed 2 years ago

SimonDarksideJ commented 2 years ago

Issue created by ChaoticTwinz Studio as Bitbucket Issue #​289 on 2019.06.19 13:06. Hi,
I am using UI Line Renderer in screen space - camera mode, I tried to draw few circles but the result is not as i expected. And I also put it in my android, same thing happen plus the line update really laggy.

P.S. SetAllDirty already call when new points created ( that is come with the code, thanks for the charm.)

SimonDarksideJ commented 2 years ago

On 2019.06.20 01:23, @SimonDarksideJ commented: This is sadly an artefact of the UI system. You can draw circles and then use the procedural filler to make them smoother, but it’s not perfect.

Only way currently, that Unity allows, is to use more points to make the line smoother and then use an antialiasing shader to further smooth it over. Sadly, each have their own performance costs.

SimonDarksideJ commented 2 years ago

On 2019.06.20 05:22, ChaoticTwinz Studio commented: thanks, maybe UI Line renderer is not a good tools as a drawing tools.