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

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.
Reply
#2
Hi
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
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
  Null Reference Exception rickgplus 1 267 03-01-2025, 02:09 PM
Last Post: _Aka_
  OnAfterControlPointAdded - Control Point is null jh092 5 678 02-04-2025, 09:31 PM
Last Post: _Aka_
  Duplicate Volume references become null joebain 5 636 11-18-2024, 10:46 AM
Last Post: joebain
  Procedural Connections Janooba 3 451 10-23-2024, 02:53 PM
Last Post: _Aka_

Forum Jump: