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 will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Connections Problem Juton 3 14 03-06-2024, 10:41 AM
Last Post: _Aka_
  Are connections pooled? Lupos 1 3 05-09-2023, 09:18 AM
Last Post: _Aka_
Bug Argument Null exception Beqo77 5 17 04-24-2023, 08:26 PM
Last Post: _Aka_
  How to merge intersecting meshes at spline connections? Reign_of_Light 2 6 03-20-2023, 08:36 AM
Last Post: Reign_of_Light

Forum Jump: