Linked Questions

0
votes
2answers
2k views

Add image to button in unity [duplicate]

Sorry if this question has already an answer somewhere, but I've just started to play with Unity and now I'm stuck. :( I've tried a few things ( from here , here and here and others ) but none of ...
1
vote
1answer
226 views
0
votes
2answers
142 views

NullReferenceException in my inventory system [duplicate]

I'm making a simplified inventory system for a 3d game. When I try to pick up an object, I get the following error: NullReferenceException: Object reference not set to an instance of an object ...
-1
votes
1answer
139 views

The game is running but it gives me Object reference not set to an instance of an object error on console [duplicate]

When I play the game it works perfectly fine but it shows an error in the console when pressing buttons but it is still working just causing a bit of lag. This is the error: NullReferenceException: ...
0
votes
1answer
40 views

nullException issue [duplicate]

I have a problem when I was trying to change a state within my character. I wrote the code below ...
-1
votes
1answer
38 views

NullReferenceExepction Error [duplicate]

I'm getting error an error on this piece of code: if (EventSystem.current.IsPointerOverGameObject()) return; The error: ...
1
vote
1answer
55 views

swipe control can't destroy gameobject [duplicate]

I tried to make a game where you can destroy something when you swipe or tap. However, it says NullReferenceException & while the swipe control actually works, ...
0
votes
1answer
52 views

NullReferenceException Error For Respawning [duplicate]

I am making an infinite runner game, and I am having issues with killing and respawning the player. I have a coroutine setup on the GameMaster objec which is the respawn and on the player I have a ...
-3
votes
1answer
46 views

how to call function [duplicate]

how do I get a function from another script and insert it into a button, I did this is giving this error "Object reference not set to an instance of an object" ...
0
votes
1answer
33 views

Unity game crashing when dialogue with NPC initiated [duplicate]

I have 3 NPCs in my "Game". When the player walks up to any of them, they're supposed to have their own dialogue; I've tested this, and they do. I tried to create a display that shows this dialogue ...
0
votes
1answer
33 views

I keep getting this error when I run my game so far [duplicate]

I have a tags script: ...
0
votes
0answers
25 views

How simulate day/night transition on 2d game? [duplicate]

I'm trying to create a 2d game and I want to have a day/night transition, but i'm actually new on Unity and I don't know how to do it, I'm using this code, but give me error and I really don't even ...
0
votes
0answers
23 views

Issue with button clicked by mouse? [duplicate]

I have panel with some images and buttons. when I click on a button with "gold" name it works, and if I click on any thing other I got error //NullReferenceException: Object reference not set to an ...
0
votes
0answers
23 views

NullReferenceException: Object reference not set to an instance of an object on boolean variable from separate class [duplicate]

I'm trying to develop game scenario that able to trigger the alarm with alarm light and siren audio to play. For the testing purpose I set it that to boolean value as "alarmOn" in AlarmLight class. <...
0
votes
0answers
21 views

NullReferenceException: Object Reference Not Set to an Instance of an Object (How is that so and I should I solve it?) [duplicate]

I am stuck several days because of this problem, which I am almost on the verge of giving up. (Using Unity Engine 2019.3a by the way). The TextButtonName.text can't read what TextButton is throwing to ...

15 30 50 per page