How to use CurveSet

Instead of using an array of curves as in the example below, I would like to use a CurveSet to accomplish the same thing. How can I do that?

https://playcanvas.com/editor/code/578129?tabs=14639092

This has an example of using a CurveSet in a script: https://playcanvas.com/editor/scene/475824

1 Like