• 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

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

Eddie21uk answered

Scripts working in Editor, but not in build

May 22, '22 in Help Room

2 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

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

Rebaken-Enterprises answered

NullReferenceException involving loading windows?!

Apr 1, '22 in Help Room

2 Replies

0 Votes

avatar image

unity_qT8Y9osPinb1jA answered

Prefabutility.instantiateprefab returns null SOMETIMES.

Mar 10, '22 in Help Room

2 Replies

1 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

mc_fragezeichen commented

Scene Null Reference in build

Feb 11, '22 nullreferenceexception·scene-loading·pc

1 Reply

2 Votes

avatar image

Alan9000 published

NullReferenceException on GameObjectInspector Editor Error

Jan 24, '22 gameobject·editor·build·nullreferenceexception·cache

6 Replies

4 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

Xrank answered

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

Dec 20, '21 in Help Room

1 Reply

0 Votes

avatar image

Jesuswoerks commented

Scriptable Object is getting set to null

Dec 14, '21 nullreferenceexception·scriptableobject·scriptable object

0 Replies

1 Votes

avatar image

FuryFight3r edited

How do I check if an object is null?

Dec 10, '21 nullreferenceexception

6 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

saharrsh commented

NULL REFERENCE EXCEPTION ON SWITCHING PLATFORM TO ANDROID

Oct 1, '21 nullreferenceexception

0 Replies

-2 Votes

avatar image

ShawnFeatherly answered

Android Build Failure: NullReferenceException

Sep 25, '21 in Help Room

1 Reply

1 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

BozontGames commented

[Solved]unexplanable null refrence exception

Sep 13, '21 in Help Room

4 Replies

13 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

ssinga1 answered

Addressables.LoadContentCatalogAsync throws null reference error in build

Aug 30, '21 in Help Room

1 Reply

0 Votes

avatar image

de_Lich commented

Reloading Scene causes "null" object references.

Aug 23, '21 c#·nullreferenceexception·event·loadlevel·delegate

3 Replies

8 Votes

avatar image

Hexane answered

NullReferenceException when looking at target in an Editor class (CustomEditor)

Aug 12, '21 editor·bug·nullreferenceexception·unity4·customeditor

2 Replies

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

PaulRdy answered

NullReferenceException on animation clips

Aug 6, '21 animation·nullreferenceexception

3 Replies

0 Votes

avatar image

AtiyehNorouzi22 commented

Gameobject instantiation returns null

Aug 3, '21 instantiate·nullreferenceexception

1 Reply

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

Related Topics

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


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