- Home /
Question by
Kyle 6 · Sep 15, 2010 at 02:07 PM ·
cameranullreferenceexceptionchild
NullReferenceException...Camera problem???
Here's this error I have after dragging an object (parented to Main Camera) into the variable slot of another object's script (Also parented to Main Camera).
NullReferenceException
UnityEditor.HandleUtility+SavedCamera..ctor (UnityEngine.Camera source)
Detailed error:
System.NullReferenceException:
at <0x00000> <unknown method>
at (wrapper managed-to-native) UnityEngine.Camera:get_nearClipPlane ()
at UnityEditor.HandleUtility+SavedCamera..ctor (UnityEngine.Camera source) [0x00000]
at UnityEditor.HandleUtility.PushCamera (UnityEngine.Camera camera) [0x00000]
at UnityEditor.SceneViewRotation.OnGUI () [0x00000]
at UnityEditor.SceneView.OnGUI () [0x00000]
at <0x00000> <unknown method>
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[])
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
Any help would be awesome,
Kyle
Comment
Best Answer
Answer by Kyle 6 · Sep 15, 2010 at 07:41 PM
Restarting unity and my computer fixed the problem.
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Parented Camera randomly warping about 0 Answers
NullRefenceException error 1 Answer
Unity 4.6: How to swap childs (without detaching them)? 1 Answer
Smooth Follow Camera Rotate on Z-Axis? 2 Answers