• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
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
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Kyle 6 · Sep 15, 2010 at 07:41 PM

Restarting unity and my computer fixed the problem.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

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

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

A node in a childnode? 1 Answer

Parented Camera randomly warping about 0 Answers

Tree Child Collision Capsule not registering 1 Answer

Camera.current.Render() renders AND makes a NullReferenceException error 0 Answers

NullReferenceException in game build 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges