• 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

Nullreferenceexception

Cancel

This exception means the program is attempting to use an object reference that has not been instantiated.


Cancel

Unanswered Questions

  • All Questions
avatar image

BawsAnimations published

Shooting Script Instantiate Problems. Help?

Dec 9, '12 instantiate·nullreferenceexception·bullet·shoot

0 Replies

0 Votes

avatar image

Bunny83 commented

C# Multidimensional arrays

Jan 22, '18 in Help Room

0 Replies

0 Votes

avatar image

J_Issa published

Not sure why I keep getting a Null Reference Exception? (Networking)

Apr 28, '14 networking·beginner·nullreferenceexception

0 Replies

0 Votes

avatar image

Synnystter asked

javascript NullReferenceException: Object reference not set to an instance of an object

Jun 27, '16 in Help Room

0 Replies

0 Votes

avatar image

Xtro commented

Serializable class variables loose Gameobject reference in inspector

Jun 4, '14 nullreferenceexception·class·serializable·drag objects

0 Replies

1 Votes

avatar image

shane.rachel edited

Need Help!

Dec 13, '12 rigidbody·nullreferenceexception·drag·throw

0 Replies

0 Votes

avatar image

jedeo1994 commented

Unity project 3.5 to 4 issues

Jan 16, '13 trigger·nullreferenceexception·unity 4·upgrading·maincamera

0 Replies

0 Votes

avatar image

William_Weaver commented

Functions work in the Editor, don't work when Built. (Javascript)

May 12, '14 instantiate·build-error·nullreferenceexception·sendmessage·agent

0 Replies

0 Votes

avatar image

Nanity commented

NullReferenceException

Oct 6, '12 nullreferenceexception

0 Replies

0 Votes

avatar image

KiraSensei commented

Help me fix this please!!!

May 16, '13 nullreferenceexception

0 Replies

0 Votes

avatar image

gladkikhvadim93 edited

NullReferenceException at (wrapper managed-to-native) UnityEngine.Component.get_gameObject

Nov 27, '19 in Help Room

0 Replies

0 Votes

avatar image

rajavamsidhar_gvs commented

Null Reference Exception

Mar 3, '16 in Help Room

0 Replies

0 Votes

avatar image

CScherer549 commented

Unity Networking - Error on spawning Player

Jul 20, '14 networking·nullreferenceexception

0 Replies

0 Votes

avatar image

Reckfullies edited

NullReferenceException - UnityEditor.HostView.OnGUI

Apr 10, '17 in Help Room

0 Replies

0 Votes

avatar image

gl0ck commented

Draw line errors

Oct 27, '14 nullreferenceexception·draw·line renderer

0 Replies

0 Votes

avatar image

Dominic95 asked

Null Reference Exception

Aug 4, '16 in Help Room

0 Replies

0 Votes

avatar image

jdizzle1227 published

Trying to create a new script in javascript error

Feb 16, '14 error·nullreferenceexception

0 Replies

0 Votes

avatar image

Nk.Andrei commented

Problems creating a grid.I dont understand.

Aug 10, '13 error·nullreferenceexception·grid·monobehaviour

0 Replies

0 Votes

avatar image

awang published

NullReferenceException when using gameObject.SetActive(false);

Nov 9, '15 in Help Room

0 Replies

0 Votes

avatar image

Bunny83 edited

Not sure why I'm getting a null reference exception

Oct 27, '12 nullreferenceexception

0 Replies

0 Votes

avatar image

siaran commented

Getting a reference to a group of ScriptableObjects implemented at runtime?

May 25, '15 c#·nullreferenceexception·scriptableobject·reference

0 Replies

-1 Votes

avatar image

DanickCyb published

Why am I geting null reference exception while reading xml file?

Dec 14, '15 nullreferenceexception·xml·xmlserializer

0 Replies

0 Votes

avatar image

Norfinity commented

NullReferenceException: Object reference not set to an instance of an object ss.Update () (at Assets/ss.cs:21)

Sep 9, '16 nullreferenceexception·object reference·set

0 Replies

0 Votes

avatar image

jeffreymarkbaldridge commented

NullReferenceException: Object reference not set to an instance of an object

Dec 22, '14 error·object·nullreferenceexception·reference·console

0 Replies

0 Votes

avatar image

Joyrider commented

"NullReferenceException: Object reference not set to an instance of an object"

Aug 21, '13 nullreferenceexception

0 Replies

0 Votes

avatar image

SteveHadley edited

RayCastHit.transform.gameObject.GetComponent works in editor but not in standalone build

Dec 29, '17 scripting problem·raycast·nullreferenceexception

0 Replies

0 Votes

avatar image

JPB18 commented

Strange NullReferenceException when drawing DragableWindow

Dec 22, '13 gui·button·nullreferenceexception·window·dialogue

0 Replies

0 Votes

avatar image

IgorAherne commented

Null Reference Exception For An Unknown Reason

Jan 30, '17 in Help Room

0 Replies

1 Votes

avatar image

Xarbrough asked

Manually creating Editor sometimes leads to NullReferenceException in SerializedObject constructor

Jul 23, '17 c#·editor·nullreferenceexception·serializedobject

0 Replies

0 Votes

avatar image

saharrsh commented

NULL REFERENCE EXCEPTION ON SWITCHING PLATFORM TO ANDROID

Oct 1, '21 nullreferenceexception

0 Replies

-2 Votes

  • »
  • ‹
  • 2
  • 3
  • 4
  • 5
  • 6
  • ›
  • »

Followers

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Related Topics

c# error null reference exception instantiate gameobject scripting problem array javascript error message null raycast object reference getcomponent unity 5 object list reference instance prefab arrays class transform networking unity 2d ui


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges