Polyline has bad points

Avatar
  • updated
  • Fixed

Hello, I updated Shapes today.

And i found some weird thing. Every polyline has '3' bad points. They are (0,0,0), (0.8660254, -0.5, 0), (-0.8660254, -0.5, 0).

It was fine before i update it.

What should i do?

Thanks for any support, and really appreciate this amazing tool.

Reporting a bug? please specify Unity version:
2019.4.6f1
Reporting a bug? please specify Shapes version:
4.0.0
Reporting a bug? please specify Render Pipeline:
Built-in render pipeline
Pinned replies
Avatar
Freya Holmér creator
  • Answer
  1. For case 1, what is the problem?
  2. Did something break after update, that used to work before? There shouldn't have been any change to anything related to polylines in this update, so it's possible something changed on Unity's end with serialization. for instance, if you update while you had a scene open with polylines, serialization might get confused.
  3. If you want to delete points in the inspector, you can select a point, and click the little minus symbol at the bottom

Avatar
Freya Holmér creator

these are the default points for polyline components, they are the coordinates for an equilateral triangle

did your existing polylines get reset or something?

Avatar
deckard woo
Quote from Freya Holmér

these are the default points for polyline components, they are the coordinates for an equilateral triangle

did your existing polylines get reset or something?

i use polyline for two case, no reset case and reset case.

case 1 (no reset case) : just draw many polylines, almost 7000 units. and these are not changed, but also have problem.

case 2 (reset case) : i have to draw a line(polyline), and modify points that polyline have, so i destroyed polyline gameobject and remake that.

and both cases have that problem.

these three points are included in polyline and visible in scene or gameview.

should i delete that default points? and how can i delete?

Avatar
Freya Holmér creator
  • Answer
  1. For case 1, what is the problem?
  2. Did something break after update, that used to work before? There shouldn't have been any change to anything related to polylines in this update, so it's possible something changed on Unity's end with serialization. for instance, if you update while you had a scene open with polylines, serialization might get confused.
  3. If you want to delete points in the inspector, you can select a point, and click the little minus symbol at the bottom

Avatar
deckard woo

1. same problem like this:

2. of course, didn't change anything and didn't something break. i had problem like this : https://shapes.userecho.com/en/communities/1/topics/259-some-shapes-dont-draw-some-of-the-time-in-the-editor

so i updated shapes, and this problem occurred.

3. can i delete points on code, not in inspector?

I really appreciate this help. thank you.

Avatar
Freya Holmér creator

it sounds like something with serialization went wrong during the update. if you have the old scene file (in version control/git or so), then I suggest restoring that if possible, as well as doing a clean install before opening the scene again

if you want to remove points from code, you can edit the myPolyline.points list, and set myPolyline.meshOutOfDate to true, and the polyline will update on the next render

Avatar
deckard woo

First, i did clean install. but unfortunately, it doesn't work.

But, i solved this issue by deleting that points as your comment. It worked!!

thank you so much. i really appreciate your support and comment.

Avatar
Freya Holmér creator
  • Fixed

glad it worked out!