• 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

Waz edited

Tell JavaScript To Ignore NullReferenceException?

Sep 2, '11 nullreferenceexception·ignore

2 Replies

0 Votes

avatar image

smartjazz published

What is a SIGBUS in unity iphone and why does it happen so often?

Oct 19, '12 iphone·nullreferenceexception

5 Replies

1 Votes

avatar image

malkere commented

Static Dictionary not initializing properly

Oct 30, '14 nullreferenceexception·static·dictionary

1 Reply

0 Votes

avatar image

XGDragon commented

Custom inspector, a multidimensional array of enums

Jul 18, '14 array·inspector·nullreferenceexception·editorgui

1 Reply

1 Votes

avatar image

jorrit5477 published

SpeechRecognitionEngine.InstalledRecognizers() returns null within Unity.

Jun 18, '16 error·nullreferenceexception·windows·dll·.net

3 Replies

0 Votes

avatar image

RoR asked

Question about Inheritance in Unity

Feb 17, '11 programming·nullreferenceexception·inheritance

1 Reply

0 Votes

avatar image

Deadcow_ answered

Unsubscribe events in OnDisable causes NullReferenceException

Jan 6, '16 nullreferenceexception·event·events·execution order·ondestroy

2 Replies

1 Votes

avatar image

perchik converted comment to answer

Find with tag throwing an Null exception Closed

May 8, '14 gameobject·nullreferenceexception·tags·find

1 Reply

0 Votes

avatar image

NorthernEagle commented

GetComponent usage returns NullReferenceException, not sure why

May 7, '12 nullreferenceexception·getcomponent·find

1 Reply

1 Votes

avatar image

EliteMossy commented

Cannot assign assets to variables via inspector: NullReferenceException

Apr 4, '13 c#·inspector·nullreferenceexception·assets

3 Replies

0 Votes

avatar image

cernst77 answered

Still strugging with GetComponent and accessing other objects (C#)

Sep 6, '11 c#·nullreferenceexception·getcomponent

2 Replies

1 Votes

avatar image

Roventae answered

raycasting in c# - NullRefrenceException error

Aug 2, '11 c#·raycast·nullreferenceexception·mouse-drag

2 Replies

0 Votes

avatar image

vxssmatty commented

NullReferenceException, but the reference is set!

Oct 5, '11 nullreferenceexception·exception

2 Replies

0 Votes

avatar image

UnityCoach answered

NullReferenceException: Object reference not set to an instance of an object in Singleton class.

Dec 18, '16 in Help Room

1 Reply

0 Votes

avatar image

Kleptomaniac commented

Resource Load Prefab

Mar 10, '12 nullreferenceexception·prefabs·class·resources.load

0 Replies

0 Votes

avatar image

Supershandy commented

how to fix a null reference exception when a findgameobjectwithtag does not exist

Apr 12, '13 javascript·nullreferenceexception·null·findgameobjectwithtag

1 Reply

0 Votes

avatar image

aibolith published

[Solved]NullReferenceException problem

Apr 16, '17 c#·camera·nullreferenceexception

2 Replies

0 Votes

avatar image

runevision edited

Getting a button to run a function

Feb 19, '10 error·nullreferenceexception·syntax-error·cs0266

2 Replies

1 Votes

avatar image

TEKNOPARADOX commented

Wierd Console Errors

Jul 1, '15 error·nullreferenceexception·console

2 Replies

0 Votes

avatar image

alex_dossamer edited

Why does ScriptableObject.CreateInstance, where T is definite at runtime, return null?

Nov 15, '18 nullreferenceexception·scriptableobject·null·generics

1 Reply

0 Votes

avatar image

vexe commented

Null Reference from Custom Editor

Apr 22, '14 editor·nullreferenceexception·custom-editor

1 Reply

0 Votes

avatar image

Jessy edited

Raycast Tap Help

Jan 29, '11 nullreferenceexception

1 Reply

0 Votes

avatar image

RoR asked

Inheritance in C# and Unity3d

Feb 17, '11 programming·nullreferenceexception·inheritance

1 Reply

0 Votes

avatar image

Seth-Bergman edited

NullreferenceException, BeginScrollView style change

Aug 6, '12 c#·gui·nullreferenceexception·guistyle·beginscrollview

3 Replies

0 Votes

avatar image

hexagonius commented

NullReferenceException: A null value was found where an object instance was required. at InitScript.LoginCallback2

Mar 20, '16 in Help Room

0 Replies

0 Votes

avatar image

dsada commented

NullReferenceException on function call

Sep 9, '14 c#·nullreferenceexception·function

1 Reply

0 Votes

avatar image

jamesstephenbrown edited

How to store variables in a separate class

Jul 11, '16 in Help Room

1 Reply

0 Votes

avatar image

Kaasa_Abdul answered

random occuring NullReferenceException

Jan 19, '18 in Help Room

1 Reply

0 Votes

avatar image

CloverKitsune commented

Can't find source of trigger Null Reference Exception

Dec 3, '12 c#·error·trigger·nullreferenceexception·null

1 Reply

0 Votes

avatar image

Tojikan edited

Why am i getting this? NullReferenceException because of UnityEditor.GridPaintingState.UnregisterPainterInterest

Jan 30, '18 in Help Room

1 Reply

16 Votes

  • »
  • ‹
  • 4
  • 5
  • 6
  • 7
  • 8
  • ›
  • »

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