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
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Duplicate Volume references become null joebain 5 33 11-18-2024, 10:46 AM
Last Post: joebain
  Procedural Connections Janooba 3 7 10-23-2024, 02:53 PM
Last Post: _Aka_
  Connections doesn't work in split scenes nehvaleem 4 10 05-29-2024, 07:31 AM
Last Post: _Aka_
  Connections Problem Juton 3 17 03-06-2024, 10:41 AM
Last Post: _Aka_

Forum Jump: