Is there a max limit to the points a polyline can draw?

Avatar
  • updated
Have a very long polyline

It stops drawing after around 33000 points, although it would seem that all the points are in the array.

Is that expected?


Thanks

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

Unity has a limit to the number of vertices it can hold in 3D meshes. After a certain vertex count, you'll have to use multiple polylines. The vertex count also depends on the type of polyline, where the simple polyline has the least amount of vertex data

info on vertex limits in Unity here
https://docs.unity3d.com/ScriptReference/Rendering.IndexFormat.html