• 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

Bunny83 commented

(C#)Usage of own type returns NullReferenceException

Jul 24, '11 c#·networking·nullreferenceexception·custom-class

1 Reply

1 Votes

avatar image

DMCH answered

Losing reference to object and attached script

Apr 3, '13 nullreferenceexception·reference

1 Reply

0 Votes

avatar image

Tasmia edited

NullReferenceException with an Array

Apr 21, '14 array·nullreferenceexception·object reference

2 Replies

1 Votes

avatar image

Hexane answered

NullReferenceException when looking at target in an Editor class (CustomEditor)

Aug 12, '21 editor·bug·nullreferenceexception·unity4·customeditor

2 Replies

0 Votes

avatar image

Will 7 edited

Help with reading a text file?

Oct 27, '10 text·time·nullreferenceexception·file·streamreader

1 Reply

0 Votes

avatar image

taxvi answered

Crash on Texture Select

Mar 30, '14 texture·crash·nullreferenceexception·select

2 Replies

0 Votes

avatar image

SteveOxen268 published

Writing to txt file using textfield problem

Sep 21, '13 array·nullreferenceexception·textfield·txt

2 Replies

1 Votes

avatar image

Vaz asked

runtime error ObjectSelector

Feb 12, '11 error·nullreferenceexception·runtime

3 Replies

0 Votes

avatar image

DaveA answered

Multidimensional GameObject Arrays

Aug 30, '11 nullreferenceexception·arrays·multidimarray

1 Reply

0 Votes

avatar image

_Prism_ commented

NullReferenceException but public static object present

Dec 7, '14 c#·nullreferenceexception

1 Reply

0 Votes

avatar image

Torigas published

Im getting a "NullReferenceException: Object reference not set to an instance of an object" error not sure why.

Jul 7, '15 c#·error·nullreferenceexception

1 Reply

0 Votes

avatar image

numberkruncher commented

EditorApplication.OpenScene causing NullReferenceException

Apr 21, '12 nullreferenceexception·editorwindow

1 Reply

1 Votes

avatar image

Bunny83 commented

Checking if a variable is null gives a nullreference. Why?

Sep 20, '12 nullreferenceexception·ontriggerexit

1 Reply

0 Votes

avatar image

Harko33 published

NullReferenceException when using Single Joystick prefab

May 19, '12 prefab·nullreferenceexception·joystick

1 Reply

0 Votes

avatar image

Makenshi edited

Passing Values/Variables between Classes

Jan 26, '11 beginner·nullreferenceexception·assign

2 Replies

0 Votes

avatar image

Kaven-Co-Games edited

Variables in components always returning null?

Jun 14, '15 nullreferenceexception·getcomponent·component

2 Replies

0 Votes

avatar image

syclamoth converted comment to answer

Custom class and null reference exception

Apr 16, '12 nullreferenceexception·classes

2 Replies

0 Votes

avatar image

Cyclops edited

GUISkin: Object reference not set?

Mar 19, '10 error·nullreferenceexception·gui-skin

1 Reply

0 Votes

avatar image

ina edited

NullReferenceException on assigning vector3 to mesh.vertices - no effect on assignment?

Mar 16, '11 mesh·array·nullreferenceexception·vertices·meshfilter

1 Reply

0 Votes

avatar image

SteenPetersen commented

Unable to delete object from a list using foreach loop

May 29, '20 c#·nullreferenceexception·lists·foreach·destroygameobject

1 Reply

0 Votes

avatar image

Dreamora answered

Error with Resources.Load (C#)

Oct 23, '11 nullreferenceexception

1 Reply

0 Votes

avatar image

bryanbas commented

C# - instance is not set to an instance of an object

Jul 16, '15 c#·error·nullreferenceexception·platformer·powerup

2 Replies

0 Votes

avatar image

Stactic commented

NullReferenceException when i try to access the transform of the object i collided with

Apr 2, '14 collision·transform·nullreferenceexception·instance

2 Replies

0 Votes

avatar image

Bob1 commented

On Collision Enter Object Variable Acces NullReferenceException

Sep 29, '11 nullreferenceexception

1 Reply

0 Votes

avatar image

Mehul-Rughani edited

Enabling/Disabling a slider from script

May 27, '15 button·nullreferenceexception·slider·panel·enabled

0 Replies

0 Votes

avatar image

remmbermytitans commented

Problems setting up a Texture2D

Oct 1, '12 texture2d·nullreferenceexception·materials·textures

2 Replies

0 Votes

avatar image

Taragon edited

Converting to 3rd Person from 1st Person - Island Demo

Feb 6, '11 camera·fps·nullreferenceexception·3dplatformtutorial·island-demo

1 Reply

0 Votes

avatar image

jahroy edited

Screen.currentResolution = Null?

Jan 19, '12 nullreferenceexception·screen·gui.box·screen.width·screen.height

1 Reply

0 Votes

avatar image

Benproductions1 commented

Help with eval()

Apr 28, '14 javascript·input·nullreferenceexception·math

0 Replies

0 Votes

avatar image

Bunny83 commented

Cost of null references during runtime

Mar 1, '19 c#·performance·nullreferenceexception

2 Replies

0 Votes

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

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