• 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

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

danny_appel published

Primary Database not connecting on first start up of Unity [NullReference]

Jan 4, '21 in Help Room

0 Replies

0 Votes

avatar image

sacredgeometry edited

Is there some way to make a property return a static value if the object is null/does not exist?

Dec 7, '20 static·properties·null reference

2 Replies

0 Votes

avatar image

SpiderSensei commented

Health Bar image doesn't scale down when Player takes damage

Sep 16, '20 in Help Room

2 Replies

0 Votes

avatar image

Bunny83 answered

Why does if(component) work for null tests

Jul 27, '20 c#·null reference

1 Reply

0 Votes

avatar image

JustCarty commented

Scriptable objects has empty inspectors and do not exist in build

May 16, '20 build·null·scriptable object·null reference

4 Replies

0 Votes

avatar image

Frederikw answered

null reference help. i fundamentally dont understand.

Apr 6, '20 in Help Room

1 Reply

1 Votes

avatar image

corn edited

Can I assign no value to a variable like Gamemaker?

Dec 26, '19 in Help Room

1 Reply

0 Votes

avatar image

Kyle_Nichol asked

Null reference when using resources.load

Mar 8, '19 in Help Room

0 Replies

1 Votes

avatar image

Bunny83 commented

List is not null with [SerializeField] Closed

Feb 25, '19 lists·serializefield·null reference

1 Reply

1 Votes

avatar image

SomeGuy22 answered

NullReferenceException yet Debug.Log shows nothing is null?

Aug 29, '18 c#·error·nullreferenceexception·class·null reference

1 Reply

0 Votes

avatar image

clearit commented

Array has length but is null?

Aug 23, '18 array·null reference

1 Reply

0 Votes

avatar image

TheGameLearner edited

referring static variable of existing script gives null

Aug 1, '18 in Help Room

1 Reply

0 Votes

avatar image

BluesyPompanno commented

Camera Ray - NullReferenceException: Object reference not set to an instance of an object

Jul 28, '18 camera·raycast·ray·null reference

0 Replies

0 Votes

avatar image

Harinezumi commented

Unassigned Reference Exception although it is assigned

May 23, '18 assign-variable·null reference·variable-definition·member variables

1 Reply

1 Votes

avatar image

JedBeryll answered

null reference on instantiated prefab array at instantiation

Apr 25, '18 in Help Room

1 Reply

0 Votes

avatar image

Emadov_bj edited

i have written this code to spawn a segments of enemies i don't get errors at all but it didn't work .. what should i do ?

Sep 30, '17 c#·nullreferenceexception·null reference·nullreference·null referance exeption

2 Replies

0 Votes

avatar image

Raviraja190 edited

#Need Fast Help# NullReferenceException: Object reference not set to an instance of an object

Jul 26, '17 in Help Room

0 Replies

0 Votes

avatar image

boyoh2003 edited

I keep getting a null reference exception, can anyone help? Closed

Jun 30, '17 nullreferenceexception·null reference exception·null reference·nullreference·null exception

0 Replies

0 Votes

avatar image

Aequitatis commented

What is going on with null reference checks recently?

May 23, '17 in Help Room

0 Replies

0 Votes

avatar image

ordinaryjoe commented

Delegate with return value gives null reference when using GetComponent()

Mar 25, '17 in Help Room

0 Replies

0 Votes

avatar image

mmciver edited

Checking nulls almost all the time! Is this normal?

Feb 27, '17 nullreferenceexception·if-else·null reference·static-vars

1 Reply

0 Votes

avatar image

Firro answered

Getting array from Json suddenly doesnt work.

Feb 6, '17 in Help Room

1 Reply

0 Votes

avatar image

shadowpuppet commented

object reference not set to instance of an object

Jan 21, '17 in Help Room

1 Reply

-1 Votes

avatar image

Dreik100 published

Why Sprite is null?

Dec 24, '16 c#·image·sprites·null·null reference

0 Replies

0 Votes

avatar image

Ellana published

Can anyone help me as to why this is a null reference?

Nov 7, '16 c#·null reference·terminal

1 Reply

0 Votes

avatar image

onuryurdupak edited

What does if (someComponent) statement return? Where would anyone use it?

Oct 4, '16 if·if statement·null reference

0 Replies

0 Votes

avatar image

springwater published

the thing i want to instatiate is null if im not going west

Aug 2, '16 null reference

0 Replies

0 Votes

avatar image

Le-Pampelmuse commented

NullReferenceException making no sense Closed

Jul 22, '16 in Help Room

0 Replies

0 Votes

avatar image

Polymo edited

AddObjectToAsset (reference) becomes null

Jun 23, '16 asset·serialization·scriptableobject·assetdatabase·null reference

1 Reply

0 Votes

avatar image

Ararat13 answered

"NullReferenceException: Object reference not set to an instance of an object GameHelper.Update () (at Assets/Scripts/GameHelper.cs:44)"

May 11, '16 in Help Room

2 Replies

0 Votes

  • 1
  • 2
  • 3
  • ›

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Related Topics

nullreferenceexception c# null reference exception error null nullreference getcomponent array null exception unity 2d editor javascript nullreferenceexeption camera transform instantiate raycast arrays instance script error assign-variable list gameobject build-error class
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges