04-19-2017, 06:55 PM
In the train example the toggle's state is used by a callback function (TrainCarManager.cs, OnCPReached method) assigned to the train's SplineController. This function is called when a Control Point is reached and there the controller is set to use another spline, based on the toggle's state.