• 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

Unanswered Questions

  • All Questions
avatar image

BillMurray edited

3 errors that don't show up right away

Feb 27, '15 nullreferenceexception

0 Replies

0 Votes

avatar image

jpmarqu published

NullReferenceException il2cpp

Feb 4, '15 ios·nullreferenceexception·xcode·il2cpp

0 Replies

1 Votes

avatar image

smoggach commented

Camera.main NullReferenceException on Instantiated Character

Jan 20, '15 nullreferenceexception·maincamera

0 Replies

0 Votes

avatar image

RageGolem10 published

Error putting an object into an Array

Jan 1, '15 error·array·object·nullreferenceexception

0 Replies

0 Votes

avatar image

jeffreymarkbaldridge commented

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

Dec 22, '14 error·object·nullreferenceexception·reference·console

0 Replies

0 Votes

avatar image

NikoBusiness edited

NGUI nullreference exception

Dec 1, '14 nullreferenceexception

0 Replies

0 Votes

avatar image

stopgap1 published

[2D] Applying CeilingCheck and GroundCheck

Nov 30, '14 nullreferenceexception

0 Replies

1 Votes

avatar image

Zoom377 edited

Strange GameObject null reference only in RPC

Nov 29, '14 networking·nullreferenceexception

0 Replies

0 Votes

avatar image

bob1234 asked

NRE error when no objects in scene (ofcourse)

Nov 25, '14 nullreferenceexception

0 Replies

0 Votes

avatar image

K1llercake published

NullReferenceException with animation clips

Nov 2, '14 nullreferenceexception

0 Replies

0 Votes

avatar image

gl0ck commented

Draw line errors

Oct 27, '14 nullreferenceexception·draw·line renderer

0 Replies

0 Votes

avatar image

xingwanli published

UnityEngine.UI.Graphic.get_defaultGraphicMaterial() Failed!

Oct 21, '14 nullreferenceexception

0 Replies

0 Votes

avatar image

Paddygezus commented

Problem spawning sprites

Oct 8, '14 nullreferenceexception·spawning·spriterenderer

0 Replies

0 Votes

avatar image

Graham-Dunnett edited

Got a Error about reffering a object i can not fix

Sep 23, '14 c#·2d·nullreferenceexception

0 Replies

0 Votes

avatar image

Landern commented

NullReferenceException Error

Sep 7, '14 error message·nullreferenceexception·hit

0 Replies

0 Votes

avatar image

lonedrow1 commented

GetComponent, Object Reference not set to an instance of an object

Sep 5, '14 raycast·nullreferenceexception·getcomponent

0 Replies

0 Votes

avatar image

noobunity published

Getting error "Object reference not set to an instance of an object"

Aug 23, '14 nullreferenceexception·clones

0 Replies

0 Votes

avatar image

Desination-X published

PhotonNetwork.ConnectUsingSettings("DevBuild6b") returns NullReferenceException

Aug 7, '14 multiplayer·photon·nullreferenceexception·connection

0 Replies

0 Votes

avatar image

CScherer549 commented

Unity Networking - Error on spawning Player

Jul 20, '14 networking·nullreferenceexception

0 Replies

0 Votes

avatar image

IBone commented

NRE when accessing another script's variable?

Jul 19, '14 c#·nullreferenceexception

0 Replies

0 Votes

avatar image

jatmdm edited

GUI Breaks down after changing array in editor

Jul 11, '14 nullreferenceexception

0 Replies

0 Votes

avatar image

HarshadK commented

NullReferenceException Mouse+$Start$1+$.MoveNext () (at Assets/Scripts/Mouse.js:18)

Jul 7, '14 nullreferenceexception

0 Replies

0 Votes

avatar image

TrivialRoo commented

NullReferenceException by trying to access another script.

Jun 11, '14 collider·nullreferenceexception

0 Replies

0 Votes

avatar image

destructivArts published

OnCollisionEnter GameObject throws NullReferenceException

Jun 5, '14 gameobject·nullreferenceexception·oncollisionenter

0 Replies

0 Votes

avatar image

Xtro commented

Serializable class variables loose Gameobject reference in inspector

Jun 4, '14 nullreferenceexception·class·serializable·drag objects

0 Replies

1 Votes

avatar image

Le-Capitaine commented

Can't explain an NRE

Jun 2, '14 c#·nullreferenceexception

0 Replies

0 Votes

avatar image

zpunehx commented

Subscribing to an event via non-mono script.

May 25, '14 c#·nullreferenceexception·state-machine·event-listener

0 Replies

0 Votes

avatar image

William_Weaver commented

Functions work in the Editor, don't work when Built. (Javascript)

May 12, '14 instantiate·build-error·nullreferenceexception·sendmessage·agent

0 Replies

0 Votes

avatar image

Natek_Omega published

GUI.Label not set to an instance

May 5, '14 javascript·gui·nullreferenceexception

0 Replies

0 Votes

avatar image

twisted89 published

animation[""] always null

Apr 29, '14 animation·nullreferenceexception

0 Replies

0 Votes

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

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