• 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

Graapus09 commented

How do i fix this nullreferenceException

Oct 25, '16 in Help Room

1 Reply

0 Votes

avatar image

rocker182 published

NullReferenceException

Nov 10, '16 in Help Room

2 Replies

0 Votes

avatar image

SSJ-Panda asked

C# object reference not set to an instance of an object CS86 Closed

Feb 10, '16 in Help Room

0 Replies

0 Votes

avatar image

T_Lavell answered

I am new art this, keep getting NullReferenceException: Object reference not set to an instance of an object..... Where am I going wrong?

Feb 21, '17 in Help Room

1 Reply

0 Votes

avatar image

viktoria93 asked

NullExecption in a communication between two scripts

Jul 13, '17 in Help Room

0 Replies

0 Votes

avatar image

sean244 edited

Referenced script returns 0

Apr 13, '18 script.·nullreferenceexception

2 Replies

1 Votes

avatar image

noyco published

GameObject from foreach loop dosn't have transform?,

Apr 16, '20 gameobject·transform·nullreferenceexception

1 Reply

0 Votes

avatar image

Maritto7 commented

I get a NullReferenceException when a script is attached to one object, but not another. Closed

Mar 19, '18 nullreferenceexception

0 Replies

0 Votes

avatar image

tormentoarmagedoom answered

NullReferenceException after loading a new scene ? Closed

Jan 30, '19 c#·nullreferenceexception

1 Reply

0 Votes

avatar image

onuregeunaldi1 asked

While level restarted I get NullReferenceException

Feb 27, '20 c#·unity 5·nullreferenceexception

0 Replies

0 Votes

avatar image

kevinamoin23 commented

How can I fix this "NullReferenceException: Object reference not set to an instance of an object Door.PlayLockedDoorSound () (at Assets/Scripts/Door.cs:34) Door.ChangeDoorState () (at"

Sep 3, '16 in Help Room

1 Reply

0 Votes

avatar image

Jawchewa answered

(javascript) object refrence not set to an instance of an object

May 20, '17 in Help Room

1 Reply

0 Votes

avatar image

cpiper792 answered

NullReferenceException Error on first frame, despite everything functioning correctly

May 19, '20 scripting beginner·nullreferenceexception

1 Reply

0 Votes

avatar image

Hawk0n edited

i have a code that loads a level and it works fine while in the unity 5 (personal 64bit) editor, but once i try to build the game i get a Null Reference Exception and all my text dissapears

Oct 3, '15 in Help Room

0 Replies

0 Votes

avatar image

logicandchaos answered

Savestates are not referenced even though I'm pretty sure I did

Aug 26, '20 nullreferenceexception·save data·saveload

1 Reply

0 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

pekalicious answered

Why does my script have a NullReferenceException?

Nov 16, '15 in Help Room

1 Reply

0 Votes

avatar image

b_rez published

Oculus DK2 unresponsive for Unity 5.2 Windows

Nov 29, '15 nullreferenceexception

0 Replies

0 Votes

avatar image

El Maxo commented

Object reference not set to an instance of an object C#

Jan 8, '16 in Help Room

0 Replies

0 Votes

avatar image

tormentoarmagedoom answered

The code provided for me by the Survival Shooter tutorial has errors. I can't seem to figure them out, so I came here

Apr 11, '18 nullreferenceexception

1 Reply

0 Votes

avatar image

mattchubboy asked

Unity 2D text array remove from loop null

Jun 20, '18 in Help Room

0 Replies

0 Votes

avatar image

tacocat1512 answered

Raycast2DHit reference in other script runs NullReferenceException

Jan 16, '21 nullreferenceexception·raycasthit2d

1 Reply

0 Votes

avatar image

SwiftKraft answered

Weird Error With References

Sep 7, '21 in Help Room

1 Reply

0 Votes

avatar image

MilKID asked

NullReference Exception Error - makes no Sense at all!

Feb 21, '17 in Help Room

0 Replies

0 Votes

avatar image

KIMSCHMITZ answered

NullReferenceException HELP

Nov 15, '15 in Help Room

1 Reply

0 Votes

avatar image

the_MASTER_x19 asked

Null Reference Exception

Feb 10, '18 in Help Room

0 Replies

0 Votes

avatar image

mobster2009 commented

trying to make a scare jump triggr but i get this error code

Dec 8, '16 in Help Room

1 Reply

0 Votes

avatar image

projectpt asked

Issue with 2D raycast

Jan 24, '18 in Help Room

0 Replies

0 Votes

avatar image

Papouc asked

NullReferenceException after loading a new scene ?

Aug 25, '18 in Help Room

0 Replies

0 Votes

avatar image

WasTabon asked

What is this Unity error when starting in editor?

Sep 16, '20 nullreferenceexception

0 Replies

0 Votes

  • »
  • ‹
  • 51
  • 52
  • 53
  • 54
  • 55
  • ›

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