• 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

All Questions

  • Unanswered Questions
avatar image

Leonniar published

Can't get (added) components from Empty Object, Animator giving me a hard time.,Can't get (added) components from Empty Object, animator get's on my nerves.

8 hours ago in Help Room

0 Replies

0 Votes

avatar image

Linus2005 published

Getting java.lang.Exception error on android and game ends up crashing.

May 27, '22 nullreferenceexception·java

0 Replies

0 Votes

avatar image

jackhamlingthon asked

Select correct answer in a quiz game

May 6, '22 in Help Room

0 Replies

0 Votes

avatar image

Eddie21uk answered

Scripts working in Editor, but not in build

May 22, '22 in Help Room

2 Replies

0 Votes

avatar image

fturangga asked

Error running StartUp for Tile.NullReferenceException: Object reference not set to an instance of an object

Apr 22, '22 nullreferenceexception

0 Replies

0 Votes

avatar image

mygoddess007700 answered

NullReferenceException errors

Mar 10, '22 nullreferenceexception·github

1 Reply

0 Votes

avatar image

mataveli91 asked

MissingReferenceException: The object of type 'Script' has been destroyed but you are still trying to access it.

Feb 21, '22 in Help Room

0 Replies

1 Votes

avatar image

Bolteon360 published

Null reference exception, even though I want my method to return null

Feb 15, '22 in Help Room

0 Replies

0 Votes

avatar image

CodesCove commented

Why does this work but this doesn't even though they are the same thing?

Nov 24, '21 3d·nullreferenceexception·animator controller

0 Replies

0 Votes

avatar image

$$anonymous$$ commented

match 3 tutorial: unable to store gem position on the board. Whats wrong with the following code:

Nov 21, '21 nullreferenceexception

1 Reply

0 Votes

avatar image

Xrank answered

UI null reference errors in script, but not in inspector.

Dec 20, '21 in Help Room

1 Reply

0 Votes

avatar image

GDarthy edited

What causes the NullReferenceException in Editor Window code

Sep 8, '21 in Help Room

0 Replies

0 Votes

avatar image

SwiftKraft answered

Weird Error With References

Sep 7, '21 in Help Room

1 Reply

0 Votes

avatar image

makaolachsiungca answered

Storing input Field Values in array not working

Sep 5, '21 array·nullreferenceexception

1 Reply

0 Votes

avatar image

seanwiemken answered

Why is the value of my variable being reset when changing scenes?

Aug 9, '21 in Help Room

1 Reply

0 Votes

avatar image

AtiyehNorouzi22 commented

Gameobject instantiation returns null

Aug 3, '21 instantiate·nullreferenceexception

1 Reply

0 Votes

avatar image

CrispGalileo edited

Trouble with SceneMananger.sceneLoaded and passing dictionaries

Jul 26, '21 in Help Room

0 Replies

0 Votes

avatar image

rage_co commented

Game Object adds itself back after scene reload?

Jul 23, '21 in Help Room

1 Reply

0 Votes

avatar image

Setin commented

Script not working in build version

Jul 21, '21 build·nullreferenceexception

0 Replies

0 Votes

avatar image

Hacker237 answered

NullReferenceException at at GoogleMobileAds.Api.MobileAds.Initialize (System.Action`1[T] initCompleteAction) [0x00000] in <00000000000000000000000000000000>:0

Jan 7, '22 error·ios·nullreferenceexception·admob

3 Replies

0 Votes

avatar image

CursedRat asked

LitJson not working

Jul 18, '21 nullreferenceexception·object reference·litjson

0 Replies

0 Votes

avatar image

raha90 commented

Change SetActive(true/false) from a GameObject which is child of a different ImageTarget

Jul 16, '21 nullreferenceexception·getcomponent·setactive·image target

1 Reply

0 Votes

avatar image

anwaratxsample commented

Null Reference Exception in iOS build for some users. Not in Editor and cannot duplicate

Sep 18, '21 in Help Room

0 Replies

0 Votes

avatar image

SalwaRaion commented

My object is Null Reference Exception

Jun 1, '21 nullreferenceexception

0 Replies

0 Votes

avatar image

oscarAbraham edited

I have a SO in my quiz game. When i reference it in the inspector unity freezes. But when i dont, it works without loading the questions and throws nullreferenceexception error

May 10, '21 in Help Room

1 Reply

0 Votes

avatar image

jdg23 published

Lose Object Reference when reloading a scene

Apr 26, '21 in Help Room

0 Replies

0 Votes

avatar image

prokiller7880 commented

How to rearange the order of a list after an item was removed?

Apr 22, '21 nullreferenceexception·lists·ordering

0 Replies

0 Votes

avatar image

SpaceManDan commented

Problem with random music script

Apr 22, '21 in Help Room

1 Reply

0 Votes

avatar image

FuryFight3r edited

NullReferenceException MaskableGraphic.UpdateCull() upon Loading Player Data.

Apr 16, '21 update·nullreferenceexception·null·mask·culling mask

0 Replies

0 Votes

avatar image

SaphalAryal edited

(Pun2) Hastable. Null Reference Error

Apr 3, '21 networking·nullreferenceexception·pun·hashtable

0 Replies

0 Votes

  • 1
  • 2
  • 3
  • 4
  • 5
  • ›
  • »

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