• 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

Peacock1 commented

NullReferenceException, can't call the Transform of objects

3 days ago transform·quaternion·nullreferenceexception

1 Reply

0 Votes

avatar image

Skokon answered

Checking for null against Texture2D

4 days ago c#·texture2d·nullreferenceexception

1 Reply

0 Votes

avatar image

wideeyenow_unity edited

Object not being dragged

5 days ago in Help Room

1 Reply

0 Votes

avatar image

alvarofrodrigueza1 commented

Help adding a script to a gameobject during runtime

Aug 3, '22 in Help Room

2 Replies

0 Votes

avatar image

Napoloo commented

how to CORRECTLY load all assets (using Resources.LoadAll) Closed

Aug 3, '22 c#·error·prefab·nullreferenceexception·resources.loadall

1 Reply

1 Votes

avatar image

Thingula asked

How can I solve this Null Reference Exception? Closed

Jul 28, '22 in Help Room

0 Replies

0 Votes

avatar image

CodeMonkeyYT commented

What is NullReferenceException and how do i fix it? Closed

Jul 26, '22 nullreferenceexception

1 Reply

0 Votes

avatar image

boss2070301 commented

I keep getting NullReferenceException

Jul 24, '22 nullreferenceexception·tag

1 Reply

0 Votes

avatar image

skoteskote commented

Null reference exception when starting a coroutine

Jul 17, '22 in Help Room

1 Reply

0 Votes

avatar image

Eno-Khaon edited

I'm getting a null reference exception error at the if statement in SpawnCycle() and I'm unsure why. All references are set in the inspector.

Jul 17, '22 c#·error·coroutine·nullreferenceexception

2 Replies

0 Votes

avatar image

tormentoarmagedoom answered

Null Reference Exception Closed

Jul 14, '22 in Help Room

1 Reply

0 Votes

avatar image

tormentoarmagedoom commented

NullReferenceException error while trying to retrieve a value from another script

Jul 11, '22 in Help Room

0 Replies

0 Votes

avatar image

wideeyenow_unity commented

Test dummy NullReferenceException

Jul 1, '22 in Help Room

1 Reply

0 Votes

avatar image

TheTrueDuck answered

i can't solve this problem. plz help me...

Jun 27, '22 nullreferenceexception

1 Reply

0 Votes

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.

Jun 21, '22 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

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

  • 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 getcomponent null raycast object reference unity 5 object list reference instance prefab class transform arrays networking 2d object-reference-error


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