Posts: 43
Threads: 15
Joined: Apr 2023
Is it possible to add a override to a CurvySpline to instead use a custom CurvySplineSegment prefab? I have a component i add called a Joint used to allow controlling the splines at runtime as well as connecting them. It'd be really useful to be able to override the control points to support a custom prefab
Posts: 2,110
Threads: 92
Joined: Jun 2017
Hi
Directly specifying a prefab to be used instead of regular CPs is not possible. But you can use the OnAfterControlPointAdd event, from the CurvySpline class, to execute a code that would configure every newly added CP as you see fit.
Please consider leaving a
review for Curvy, this helps immensely. Thank you.
Available for freelance workâfeel free to reach out.