• 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

Null Reference Exception

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

alessio1918m commented

Singleton reference suddenly becomes null, why?

Jun 1, '22 in Help Room

1 Reply

0 Votes

avatar image

Dinosora asked

2D null missing reception exception, entering in/out of a scene multiple times breaks the game, some aspects clashing with my picking up item code

May 29, '22 2d game·null reference exception

0 Replies

0 Votes

avatar image

PineTreeDev edited

CustomEditor for an ScriptableObject asset only works after recompile.

May 19, '22 c#·serialization·scriptableobject·custom editor·null reference exception

1 Reply

0 Votes

avatar image

PuzzleBuilder answered

Getting a null reference exception in build but not in editor

May 11, '22 build·error message·null reference exception

2 Replies

0 Votes

avatar image

DilianaS commented

Getting error NullReferenceException on instantiate

May 7, '22 in Help Room

3 Replies

0 Votes

avatar image

ttttkk answered

Particle system does not follow emitter movement in world space: URP

Mar 17, '22 in Help Room

1 Reply

0 Votes

avatar image

TheWillCrow edited

why does a line renderer cause a nullreference excepetion?

Feb 21, '22 in Help Room

0 Replies

0 Votes

avatar image

RedRightHand- commented

GetComponent from enemy script to player script sometimes works

Oct 13, '21 2d-platformer·component·2d-physics·null reference exception

1 Reply

0 Votes

avatar image

alirazabrame answered

Player UI prefab slider Null reference

Oct 8, '21 in Help Room

3 Replies

0 Votes

avatar image

anwaratxsample commented

Null Reference Exception in iOS build for some users. Not in Editor and cannot duplicate

Sep 18, '21 in Help Room

0 Replies

0 Votes

avatar image

RLin commented

groundcheck function returns a NullReferenceException error when the player is airborne

Jun 11, '21 raycast·getcomponent·null reference exception

1 Reply

0 Votes

avatar image

WolfM1nd commented

I have never seen a null reference exception like this one!

Apr 3, '21 c#·instantiate·arrays·null reference exception

1 Reply

0 Votes

avatar image

NMJ_GD edited

Is it overkill to RequireComponent then check if GetComponent isnt Null in Awake?

Feb 14, '21 in Help Room

1 Reply

0 Votes

avatar image

marek_PLH answered

"Do not create your own module instances" Warning for ParticleSystem with custom Inspector

Feb 10, '21 in Help Room

1 Reply

0 Votes

avatar image

unity_YckkrP5h-MVruA edited

System.NullReferenceException DataTable

Jan 8, '21 null reference exception

0 Replies

0 Votes

avatar image

MonigoteGames commented

Custom class instance always return null

Jan 6, '21 in Help Room

1 Reply

0 Votes

avatar image

tategarringer edited

Difference in null behaviour between public/[SerializeField]private and private UnityEngine.Object

Jan 1, '21 object·null reference exception

2 Replies

0 Votes

avatar image

iKabyLake30 asked

Issues with setting values in custom class

Dec 22, '20 in Help Room

0 Replies

0 Votes

avatar image

suIly edited

Showing unity ads from other script?

Dec 12, '20 c#·mobile·nullreferenceexception·ads·null reference exception

1 Reply

0 Votes

avatar image

oigetinthevan answered

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

Nov 7, '20 variable·static·null reference exception

4 Replies

0 Votes

avatar image

ransomink edited

ArgumentNullException: Value cannot be null. parameter name: Source

Sep 12, '20 in Help Room

1 Reply

0 Votes

avatar image

zgp7777 published

unity nullreferenceexception for Preview window

Sep 1, '20 in Help Room

2 Replies

5 Votes

avatar image

H3nryUnity answered

The build version of my game doesn't work

Aug 3, '20 in Help Room

1 Reply

0 Votes

avatar image

OscL1 answered

What does Object reference not set to an instance of an object mean?

Jul 15, '20 null reference exception

2 Replies

0 Votes

avatar image

The_annoying_guy commented

NullReferenceException: When creating a graph

Jun 30, '20 in Help Room

0 Replies

0 Votes

avatar image

thealexguy1 answered

[Mirror Networking] NullReferenceException on player when trying to start server a second time

Jun 11, '20 networking·nullreferenceexception·server·mirror·null reference exception

1 Reply

0 Votes

avatar image

samdobon00 published

NullReferenceException: Object reference not set to an instance of an object (XmlDocument.LoadXml())

May 7, '20 xml·null reference exception

0 Replies

0 Votes

avatar image

jmailloux11 answered

Instance is null only in playmode?

Apr 18, '20 instantiate·null reference exception

1 Reply

0 Votes

avatar image

streeetwalker edited

Instantiate object through a coroutine problem

Apr 16, '20 in Help Room

1 Reply

0 Votes

avatar image

ac547 answered

Tree Creator throws NRE over trying to move the root node of branches, stuck in their positions.

Apr 8, '20 tree·bug report·null reference exception·tree creator·internal compiler error

1 Reply

0 Votes

  • 1
  • 2
  • 3
  • 4
  • 5
  • ›
  • »

Followers

avatar image

Related Topics

nullreferenceexception c# error scripting problem error message null null reference getcomponent instantiate gameobject nullreference instance object reference reference list unity 5 array object-reference-error object unity 2d bug prefab raycast exception class


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