x


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

more ▼

asked Sep 15 '10 at 02:07 PM

Kyle 6 gravatar image

Kyle 6
41 8 8 12

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Restarting unity and my computer fixed the problem.

more ▼

answered Sep 15 '10 at 07:41 PM

Kyle 6 gravatar image

Kyle 6
41 8 8 12

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3893
x3132
x427
x414
x5

asked: Sep 15 '10 at 02:07 PM

Seen: 1186 times

Last Updated: Sep 15 '10 at 02:07 PM