• 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

Silver96 commented

Why does my program crash when allocate and try to store variable in Vector3 array?

May 30, '18 array·vector3·nullreferenceexception·store·initialize

1 Reply

0 Votes

avatar image

gulliwog commented

Help how to reference prefab for instantiating between loads.

May 27, '18 gameobject·instantiate·prefab·nullreferenceexception·json

0 Replies

0 Votes

avatar image

Meds_ answered

Why am I getting this Null Reference Exception in the new Unity update.

May 23, '18 nullreferenceexception

1 Reply

0 Votes

avatar image

andrew-lukasik edited

Minesweeper UI Issue

May 22, '18 in Help Room

0 Replies

0 Votes

avatar image

Jaimieself commented

Moving a character to a waypoint

May 16, '18 error·error message·nullreferenceexception

1 Reply

0 Votes

avatar image

TreyH commented

NullReferenceException after target is destroyed

May 15, '18 c#·nullreferenceexception

1 Reply

0 Votes

avatar image

foureyes44 answered

null reference exception when I already checked if this was null

May 12, '18 c#·list·nullreferenceexception·classes·foreach

1 Reply

0 Votes

avatar image

Snailtan answered

NullReferenceExeption when trying to put GameObject into an Array

May 10, '18 c#·array·2d game·nullreferenceexception

1 Reply

0 Votes

avatar image

wilfy commented

NullReferenceException .. problem with Camera.main.transform

May 8, '18 c#·camera·nullreferenceexception·first-person-controller

2 Replies

3 Votes

avatar image

FlaSh-G answered

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

May 8, '18 nullreferenceexception

1 Reply

0 Votes

avatar image

hoperin answered

Scripts disappearing from GameObjects on Build?

May 3, '18 in Help Room

1 Reply

0 Votes

avatar image

YoloJero edited

ReorderableList Custom Editor Count -> NullReferenceExeception Closed

May 2, '18 editor-scripting·nullreferenceexception·custom editor·serializedproperty

1 Reply

0 Votes

avatar image

SimpleSam commented

can't save data in prefab and getting an error while press "Apply" in prefab!

Apr 28, '18 in Help Room

0 Replies

0 Votes

avatar image

SimpleSam asked

can't save data in prefab and getting an error while press "Apply" in prefab!

Apr 27, '18 in Help Room

0 Replies

0 Votes

avatar image

jormaje edited

NullReferenceException after build Closed

Apr 26, '18 in Help Room

1 Reply

0 Votes

avatar image

Mseg14 commented

make a gameobject follow an array of targets

Apr 21, '18 transform·nullreferenceexception·follow·target

1 Reply

0 Votes

avatar image

shadowpuppet commented

NullReferenceExeption on gameObject.SetActive Closed

Apr 17, '18 ui·gameobject·button·nullreferenceexception·setactive

1 Reply

0 Votes

avatar image

lmstrato asked

Can't return KeyCode in build

Apr 16, '18 in Help Room

0 Replies

0 Votes

avatar image

huesca12 asked

Unity Networking Client NullReferenceException Error

Apr 15, '18 in Help Room

0 Replies

0 Votes

avatar image

Captain_Pineapple commented

Null Reference Exception when using if(!islocalplayer) destroy

Apr 14, '18 networking·nullreferenceexception

1 Reply

0 Votes

avatar image

sean244 edited

Referenced script returns 0

Apr 13, '18 script.·nullreferenceexception

2 Replies

1 Votes

avatar image

tormentoarmagedoom commented

Trigger reference problem

Apr 12, '18 scripting problem·nullreferenceexception·ontriggerenter·component

1 Reply

1 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

Master_Davicous edited

for loop in OnInpectorGUI giving NullReferenceException error for some reason?

Apr 4, '18 nullreferenceexception·for-loop·oninspectorgui

1 Reply

0 Votes

avatar image

limitededitionskiingcroc asked

Checkpoints between scenes (NullReferenceException?)

Mar 29, '18 in Help Room

0 Replies

0 Votes

avatar image

Jaimieself commented

Trying to increase score when enemy is hit Closed

Mar 24, '18 error message·nullreferenceexception

1 Reply

0 Votes

avatar image

rgrandguillot commented

DisplayCancelableProgressBar NullReferenceException

Mar 24, '18 editor-scripting·nullreferenceexception·display·progress-bar

2 Replies

2 Votes

avatar image

BourgeroDev commented

List remains null after initialisation?

Mar 22, '18 in Help Room

1 Reply

1 Votes

avatar image

newlife edited

MonoScript.FromScriptableObject(this) returns null in CloudOnce 2.5.0

Mar 20, '18 nullreferenceexception

0 Replies

1 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

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

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