Polylines with multiple endpoints

Avatar
  • updated
  • Answered

Hi, I just learned about this asset (it looks amazing) so I apologize if this question has been answered elsewhere.


Is it possible to draw objects like the one below as a single shape using a polyline? Ideally the PolylinePath could be defined using only the points at the vertices/end points, but I'm not sure if it is also possible to define the connectivity between the points so that it knows to connect the bottom point to the middle point instead of another vertex. I can imagine doing this using multiple lines, or maybe repeated points in the list, but both of these seem to be less ideal.

Thank you!


Image 526

Reporting a bug? please specify Unity version:
Reporting a bug? please specify Shapes version:
Reporting a bug? please specify Render Pipeline:
Built-in render pipeline
Avatar
Freya Holmér creator
  • Answered

this is unfortunately out of scope for polylines, this would make for a very complex data structure both for users and on the backend given all the features with rounded caps etc!
I'd recommend using multiple lines in this case, or multiple separate polylines