Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom CurvySplineSegment prefabs
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
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 will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Guide to custom placing stuff on spline Lupos 15 37 11-27-2023, 12:51 PM
Last Post: _Aka_
  Disabling a CurvySplineSegment results in NullRefException Lupos 1 5 10-02-2023, 09:55 AM
Last Post: _Aka_
  Custom Control Nodes Lupos 3 14 05-27-2023, 09:05 PM
Last Post: _Aka_
  Using Prefabs with transformations reset to original state when using Deform mesh danne_lindwall 3 6 04-28-2023, 01:35 PM
Last Post: _Aka_

Forum Jump: