• 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

SomeGuy22 answered

NullReferenceException yet Debug.Log shows nothing is null?

Aug 29, '18 c#·error·nullreferenceexception·class·null reference

1 Reply

0 Votes

avatar image

CharlesDeep asked

Script works in editor but when the game loads an asset bundle with it, all the serialized data is lost.

Aug 28, '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

tormentoarmagedoom answered

Stop OnCollisionEnter method from running.

Aug 25, '18 in Help Room

1 Reply

0 Votes

avatar image

NiqXiv commented

Help! Null exception and "filename currently not available on il2cpp Line: -1",

Aug 22, '18 in Help Room

1 Reply

0 Votes

avatar image

DDeathlonger commented

I'm getting a NullReferenceException on Camera.main

Aug 21, '18 camera·nullreferenceexception·camera.main

1 Reply

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

Martinpartin asked

Editor nullreference error when playing second time

Aug 15, '18 in Help Room

0 Replies

0 Votes

avatar image

Brisingr_Eldest edited

Need Help Fixing NullReferenceException in Text Adventure Game

Aug 10, '18 in Help Room

0 Replies

0 Votes

avatar image

Yacuzo commented

NullReferenceException on empty project because of ScriptCompilerBase

Aug 7, '18 error·error message·nullreferenceexception·null reference exception·script compilation error

0 Replies

0 Votes

avatar image

TheGameLearner edited

referring static variable of existing script gives null

Aug 1, '18 in Help Room

1 Reply

0 Votes

avatar image

madks13 commented

node null reference Closed

Aug 1, '18 c#·gameobject·nullreferenceexception·spawning problems·nodes

1 Reply

0 Votes

avatar image

Igor_Vasiak edited

ScriptableObject reference resetted after a method is finished. Closed

Jul 27, '18 scripting problem·nullreferenceexception·scriptableobject·referencing·scriptable object

2 Replies

0 Votes

avatar image

Bunny83 commented

After Instantiating a Prefab I get a NullReference Error even though the Object was created

Jul 18, '18 scripting problem·error·instantiate·nullreferenceexception

2 Replies

0 Votes

avatar image

haidao0923 converted comment to answer

public reference to text disappeared when load new scene Closed

Jul 17, '18 c#·nullreferenceexception

1 Reply

0 Votes

avatar image

Bunny83 answered

NullReferenceException When Using Composite Design Pattern

Jul 13, '18 unity 5·nullreferenceexception

2 Replies

0 Votes

avatar image

Sgt_Spike answered

Setting button intractability causes an error

Jul 12, '18 in Help Room

1 Reply

0 Votes

avatar image

felipin commented

Getting component variables in InitializeOnLoad editor script?

Jul 10, '18 editor·editor-scripting·nullreferenceexception·getcomponent·editorgui

1 Reply

0 Votes

avatar image

jamesatighe commented

Enemy not giving damage Closed

Jul 2, '18 enemy·nullreferenceexception·null·enemy damage·health

2 Replies

0 Votes

avatar image

MacDx commented

Null Reference Exception with List wrapped in a scriptable object Closed

Jun 27, '18 nullreferenceexception·scriptable object

1 Reply

0 Votes

avatar image

tormentoarmagedoom commented

Instantiation Problem

Jun 26, '18 in Help Room

0 Replies

0 Votes

avatar image

miramaslow edited

Instantiated cloned GameObject returns Null outside Start method

Jun 21, '18 gameobject·nullreferenceexception·instances·accessing

0 Replies

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

marx13maxz edited

C# custom class array error in adding a new entry.

Jun 20, '18 error·array·nullreferenceexception·class·initialization

1 Reply

0 Votes

avatar image

Tanoshimi2000 commented

2017f Problems with Input on Windows Universal platform

Jun 19, '18 in Help Room

0 Replies

0 Votes

avatar image

seandolan commented

GetComponent not working

Jun 10, '18 gameobject·nullreferenceexception·getcomponent

1 Reply

0 Votes

avatar image

DVFrance answered

Why Null reference while move scene??

Jun 7, '18 unity 5·nullreferenceexception

1 Reply

0 Votes

avatar image

Alfredo78 answered

NullReferenceException: Object reference not set to an instance of an object

Jun 6, '18 c#·coroutine·nullreferenceexception·arduino·iterate

3 Replies

0 Votes

avatar image

tormentoarmagedoom answered

Needing a hand circumventing a "Missing Reference Exception". Any help sincerely appreciated!

Jun 6, '18 in Help Room

1 Reply

0 Votes

avatar image

b1gry4n edited

Trying to call a function from a dynamically created object

May 31, '18 gameobject·transform·nullreferenceexception

1 Reply

0 Votes

  • »
  • ‹
  • 6
  • 7
  • 8
  • 9
  • 10
  • ›
  • »

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