Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add On Control Point Reached (CurvySplineMoveEventArgs) during runtime?
Hi Jake,

I'm using the default Spline Controller script on a game object with a Spline assigned.

I'm looking to add an On Control Point Reached (CurvySplineMoveEventArgs) at runtime via code, so that the Spline Controller object triggers this event when it hits every control point.  

The event is a function within the CurvyEventHandler, which is also being added to the same Spline Controller game object at runtime.

I'm having a heck of a time figuring this out.  Any advice?

Thanks much,
Out of my head: SplineController.OnControlPointsReached.AddListener() should bind a callback to that event.
This led me to the right solution. Thanks so much for the help!

Possibly Related Threads...
Thread Author Replies Views Last Post
Photo How can i assign spline at runtime lololToday 1 53 06-05-2019, 01:02 PM
Last Post: _Aka_
  How to get list of control points dazz777 1 86 05-22-2019, 02:12 PM
Last Post: _Aka_
  runtime road creation migeg 1 82 05-21-2019, 01:04 AM
Last Post: _Aka_
  Adding a Control point Not working as espected UsernameHed 1 87 05-19-2019, 01:43 PM
Last Post: _Aka_

Forum Jump: