Can I render an animation curve with this?

Avatar
  • updated
  • Answered

Hi
Can I use shapes to recreate an animation curve in game? Plus if it's also editable, i see on the trailer there's a spline with gizmos on it so I just figured i ask first

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
  • Answered

sure! you can use a polyline to render the curve, assigning points that you got from an animation curve. if you specifically want to render bezier curves, you can use the PolylinePath.BezierTo helper functions in immediate mode to draw them

Avatar
athos kele

Thank you :)