Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disabling a CurvySplineSegment results in NullRefException
#1
Disabling a CurvySplineSegment gameobject via gameObject.SetActive(false)

and then clicking the editor results in this null ref error. 

I also noticed its not possible to disable CurvySplineSegments in the editor because the CurvySpline seems to override that. So the only way is via code with results in this error


[Image: NnAaeFk.png]
Reply
#2
Hi. An enabled spline needs that its control points be enabled too. Disabling the CPs should not throw those null reference errors though. I will investigate this:
1- Can you tell me what version of Curvy Splines do you use?
2- What were the reproduction steps?

Also, can you please tell me in what use case you want to disable the control points without disabling the whole done?
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Errors in Built Application in CurvySplineSegment TdayMFG 7 548 04-13-2025, 09:24 AM
Last Post: _Aka_
  Disabling Overlay nichstkann 1 261 12-15-2023, 10:09 AM
Last Post: _Aka_
  Custom CurvySplineSegment prefabs Lupos 1 285 10-02-2023, 09:36 AM
Last Post: _Aka_
  IndexOutOfRangeException in CurvySplineSegment.LocalFToDistance billowe 2 1,068 09-06-2022, 06:09 AM
Last Post: sambutle

Forum Jump: