Drawing and animating a curved line

Avatar
  • updated

[Edited]

Is this still the best way of drawing curved lines with Shapes? I'm looking to be able to animate curves (e.g. sine waves) in a similar way that you do in your (excellent) Bézier curves video). If so, grateful for advice on doing it so it shows in play mode, not just in the editor. Unless I'm being stupid, ondrawgizmos only works in the editor view, and I can't make sense of the documentation for getting it to show in play mode. 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