• 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

Tech_N_Gamer published

JSONUtilities returning null

May 14, '17 nullreferenceexception·json

0 Replies

0 Votes

avatar image

TabuuForteAkugun edited

Unity can't load audioclip, but loads metadata from same class. Closed

Oct 18, '16 in Help Room

0 Replies

0 Votes

avatar image

filifjonkaren edited

NullRefrenceException - Cant find the cost

Dec 23, '16 in Help Room

1 Reply

0 Votes

avatar image

alankemp answered

Why Am I Getting Null Reference Exception?

May 16, '17 in Help Room

1 Reply

0 Votes

avatar image

Vencarii edited

How can I use a GameObject to hold all references in a network game? Closed

Feb 28, '18 networking·nullreferenceexception

0 Replies

0 Votes

avatar image

synthc asked

UnityEditor.InspectorWindow.DrawEditors null errors with no trace

Mar 27, '20 editor·inspector·nullreferenceexception

0 Replies

0 Votes

avatar image

anthogd asked

List becomes null in Parent when filled in child script,List becomes null within own class after being filled in other class

Jun 17, '20 nullreferenceexception·lists·children

0 Replies

0 Votes

avatar image

mygoddess007700 answered

NullReferenceException errors

Mar 10, '22 nullreferenceexception·github

1 Reply

0 Votes

avatar image

mleegamemaker answered

Added Photon pun2 to 3d Game kit and got this error

Dec 24, '20 in Help Room

1 Reply

0 Votes

avatar image

Whiteleaf answered

NullReferenceException on second line but not first?

Apr 29, '16 in Help Room

1 Reply

0 Votes

avatar image

sourav13 commented

Null reference Exception

Sep 12, '16 in Help Room

0 Replies

0 Votes

avatar image

DeadManJoe33 asked

My script keeps instantiating a clone of my hero, why?

Aug 16, '16 in Help Room

0 Replies

0 Votes

avatar image

Numonic commented

Enemy not able to update score when destroyed.

Dec 29, '17 in Help Room

2 Replies

0 Votes

avatar image

Commoble edited

Getting Null Object Reference even though I'm not referencing an object

Feb 25, '18 ui·text·nullreferenceexception

1 Reply

0 Votes

avatar image

zorahsalke edited

Named array assigned to new array, named array returns null on all subsequent calls

Apr 9, '19 in Help Room

0 Replies

0 Votes

avatar image

HauntedHotPocket answered

SetActive(true) comes up null

Jan 4, '15 nullreferenceexception

2 Replies

0 Votes

avatar image

AarshSinghVishen commented

Why do i get NullReferenceException here? Closed

Jun 12, '17 in Help Room

1 Reply

-1 Votes

avatar image

Rolin_Production commented

Why do I get a NullReferenceException

Oct 14, '15 in Help Room

1 Reply

0 Votes

avatar image

Riverendell commented

Object reference not set to an instance of an object + array of positions

Jul 29, '17 in Help Room

1 Reply

0 Votes

avatar image

drhmiri commented

NullReferenceException

Nov 15, '14 nullreferenceexception

1 Reply

0 Votes

avatar image

DAlturG commented

NullReferenceException Error

Jan 25, '16 in Help Room

1 Reply

-1 Votes

avatar image

Sergio7888 commented

Unity Gradient NullReferenceException in Script

Oct 30, '16 text·nullreferenceexception·gradient

0 Replies

0 Votes

avatar image

DkSker answered

Instantiate, null reference and Raycasting problem. 2D

Oct 27, '19 raycast·nullreferenceexception·instantiate prefab

1 Reply

0 Votes

avatar image

TyrefireStudio commented

help with null reference exception Closed

Mar 11, '18 c#·nullreferenceexception·noob

0 Replies

0 Votes

avatar image

Towsif-Khan edited

Object Reference to a global private variable is set in Awake function but lost in another function in the same class.

Aug 17, '18 in Help Room

0 Replies

0 Votes

avatar image

Sunleys777 asked

Please Help!! NullReferenceException when clicking restore default pose

Jun 17, '19 animation·nullreferenceexception

0 Replies

0 Votes

avatar image

fxavierfaust published

Encountering "Null Reference Exception: Object reference not set to an instance of an object" in Build, but not in Editor

Jan 13, '21 build-error·nullreferenceexception·object reference

0 Replies

0 Votes

avatar image

Pengocat answered

Having troubles using List Closed

Dec 22, '16 in Help Room

1 Reply

0 Votes

avatar image

Martinpartin asked

Editor nullreference error when playing second time

Aug 15, '18 in Help Room

0 Replies

0 Votes

avatar image

Namey5 commented

Instantiating Custom Object in Unity MonoBehaviour Scripts

Apr 17, '20 object·nullreferenceexception

0 Replies

0 Votes

  • »
  • ‹
  • 49
  • 50
  • 51
  • 52
  • 53
  • ›
  • »

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