Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to convert GUI point to world ray if a camera has not been set up!
#1
Code:
Unable to convert GUI point to world ray if a camera has not been set up!
UnityEditor.HandleUtility:GUIPointToWorldRay(Vector2)
CurvySplineSegmentInspector:InsBefore() (at Assets/Curvy/Editor/CurvySplineSegmentInspector.cs:492)
CurvySplineSegmentInspector:DoWin(Int32) (at Assets/Curvy/Editor/CurvySplineSegmentInspector.cs:420)
UnityEditor.DockArea:OnGUI()


I get this error when using Ins Before and After, on the first and final spline segment respectively.
I'm not sure what the intended behaviour in those cases is, but extrapolating out in the direction of the tangent (?) seems like it'd be reasonable.

Also looking forward to the undo bug and warnings being fixed!

e:
Forgot to mention, this is only the case with an open spline. Closed splines don't suffer from it.
Reply
#2
Hi,

thanks for reporting this. I'll have a look.

Jake
Reply
#3
To reproduce this error, do I just have to delete any camera in the scene?
Reply
#4
No?
My steps to reproduce are:
- Create a new scene (empty, but with Main Camera by default)
- GameObject > Create Other > Curvy > Spline
- Uncheck Close Spline
- Select the first or last point of the spline, and then click Ins Before or Ins After respectively

With the main camera present throughout. As far as I can tell, it happens regardless of whether a camera is in the scene or not.
Reply
#5
Ah, ok. Then I misunderstood you. Just tested with the current dev version and fortunately, this bug is gone with the new Toolbar UI.
Reply
#6
Ah, neat. Looking forward to the next release.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Big Grin How to get a point in Spline that is parallel with another Spline? curvyuser007 5 81 01-20-2020, 10:18 PM
Last Post: curvyuser007
Question Control Point Metadata gets cleared. DavidH 2 219 12-09-2019, 03:04 PM
Last Post: DavidH
  Camera wobbles on too long spline (100km+) Vectorvision 10 1,699 08-01-2019, 12:35 PM
Last Post: _Aka_
  Closest point From a Ray (a line), to the spline UsernameHed 5 1,006 07-31-2019, 03:57 PM
Last Post: _Aka_

Forum Jump: