It's strange, I never get the full border

Avatar
  • updated

I tried to use Polyline to draw the border in the shape I wanted, but I never got the full one. I have added the necessary points.

source file:https://pan.baidu.com/s/1_wWikwnY-LdGCB-57IbZJQ
password:pmw8

Reporting a bug? please specify Unity version:
2021.1.26f1
Reporting a bug? please specify Shapes version:
4.1.3
Reporting a bug? please specify Render Pipeline:
URP
Avatar
gaoyu
Quote from Freya Holmér

duplicate points break polylines, you're adding two points twice:

Thank you so much, I was so careless

Avatar
Freya Holmér creator

duplicate points break polylines, you're adding two points twice:

Avatar
gaoyu
Quote from Freya Holmér

what script isn't working? and can you post a screenshot of what is happening?

The file RobotArm.cs

Avatar
gaoyu

I tried to draw a chain-like shape, the one on the left is missing a border on the right, and the one on the right is even stranger, missing many lines

Avatar
gaoyu

Avatar
Freya Holmér creator

what script isn't working? and can you post a screenshot of what is happening?

Avatar
gaoyu

I am drawing in immediate mode.


Avatar
Freya Holmér creator

I can't download the files without an account

are your drawing in immediate mode or using the component? and what points are you using for the polyline?

sharing code or a screenshot of your inspector with the points would help