Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solve this bug. Help~~
#1
Wink 
When I switch tracks
#. Spline Controller (Script)
#. <General> Spline (CurvySpline)
#. <Move> Clamping (Loop <-> Clamp)

NullReferenceException: Object reference not set to an instance of an object
FluffyUnderware.Curvy.CurvySpline.GetTangent (Single tf, Vector3 position) (at Assets/Packages/Curvy/Base/CurvySpline.cs:1002)
FluffyUnderware.Curvy.Controllers.SplineController.getInterpolatedSourcePosition (FluffyUnderware.Curvy.CurvySplineBase spline, Single tf, UnityEngine.Vector3& position, UnityEngine.Vector3& tangent, UnityEngine.Vector3& up) (at Assets/Packages/Curvy/Controllers/SplineController.cs:616)
FluffyUnderware.Curvy.Controllers.SplineController.GetInterpolatedSourcePosition (Single tf, UnityEngine.Vector3& position, UnityEngine.Vector3& tangent, UnityEngine.Vector3& up) (at Assets/Packages/Curvy/Controllers/SplineController.cs:432)
FluffyUnderware.Curvy.CurvyController.Refresh () (at Assets/Packages/Curvy/Base/CurvyController.cs:885)
FluffyUnderware.Curvy.Controllers.SplineController.Refresh () (at Assets/Packages/Curvy/Controllers/SplineController.cs:310)
FluffyUnderware.Curvy.CurvyController.Update () (at Assets/Packages/Curvy/Base/CurvyController.cs:632)
Reply
#2
Hi,

From the looks of the error message, it seems that the spline you are using for the controller has 0 segments. This might mean that the spline is empty, or maybe this is because the spline is not initialized yet. Can you check if one of those two hypothesis is correct in your case? To check spline initialization state, use spline.IsInitialized . More about this here.

If both hypothesis are wrong, could you give ma a detailed explanation of how you reproduce the bug? Or even better, provide me with a scene having the issue, and its needed scripts.

Also, if you have any another bug to report in the future, please use the in-editor Curvy bug reporter, or use this page https://curvyeditor.com/bugreport. This way I have some additional information that can make the debugging process faster.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Forum Jump: