Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Null Ref when using Connections

I have a unity project with4 splines and several junctions.  In the Unity editor when I have the scene view open I get these errors

NullReferenceException: Object reference not set to an instance of an object
FluffyUnderware.CurvyEditor.CurvyConnectionEditor.ConnectionGizmoDrawer (FluffyUnderware.Curvy.CurvyConnection connection, UnityEditor.GizmoType context) (at Assets/Plugins/ToolBuddy/Assets/Curvy/Editor/CurvyConnectionEditor.cs:66)
UnityEngine.GUIUtilityTonguerocessEvent(Int32, IntPtr, Boolean&)

How can I fix this? If I run the game with the Console open its fine...If the scene editor is open it throws the above error.
The only explanation I can see after looking at that code is that you have a Control Point that is not part of a spline. Is it the case?
If yes, all Control Points should be a direct child of their spline's game object.
If not, could you please send me a reproduction case?
Thanks and have a nice day
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
  Error when recreating splines / connections jh092 3 7 07-25-2022, 09:58 AM
Last Post: _Aka_
  DT Singleton Instance was null error Rick76 3 349 10-07-2021, 05:59 PM
Last Post: _Aka_
Question Working with Connections burn0815 3 931 05-28-2021, 11:24 AM
Last Post: _Aka_
  SplineController slows down approaching connections jh092 5 2,539 08-07-2020, 03:56 PM
Last Post: _Aka_

Forum Jump: