Linked Questions

0
votes
0answers
19 views

Does anyone know what caused this? [duplicate]

My code was working until the program crashed, then it started showing this. I actually don't know what caused this, but it was working before the crash... I have recently started programming so I don'...
0
votes
0answers
6 views

getting data from an array stored in a different script Unity [duplicate]

LandingScript w = GetComponent<LandingScript>(); foreach (Transform x in w.Waypoints) { allWaypoints[i] = x; i += 1; } i want ...
0
votes
0answers
30 views

Adding Score to score canvas after collision [duplicate]

Simply a player has to move through pipes falling down, once the player moves through the gap it should add a score and increase the scoring after each pipe the player goes through, pretty basic. I ...
0
votes
0answers
17 views

Coroutine not working, NullReferenceException Unity [duplicate]

When I run my game and collide with my object, I get a NullreferenceException error. I went through many posts I could find on Stackexchange and other websites, but nothing helped. When I did a Debug....
0
votes
0answers
17 views

Unity Giving following error : NullReferenceException: Object reference not set to an instance of an object [duplicate]

im going to probably look really stupid and i will be no means admit this is my code however i cant seems to get it to work so i was wondering you you might be able to? I'm getting the following ...
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 ...
0
votes
0answers
16 views

object reference not set to an instance of an object [duplicate]

hello i have a error "object reference not set to an instance of an object" when my ball collide with the spikes.its supose to remove one heart but it doesnt. health code: ...
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
77 views

Why do I get a “Value Cannot be Null” error on material.SetTexture?

Probably a really noob question, but: I'm following this tutorial here and, using the code in the tutorial, I'm getting an annoying error: Here's the code in question, the error is referring to line ...
0
votes
0answers
14 views

NullReferenceException: Object reference not set to an instance of an object [duplicate]

Hi so im displaying food, health an water on the screen in a text box by using UnityEngine.UI and making text variables. They are all defined in the update function so they will keep changing and are ...
0
votes
0answers
25 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
20 views

NullReferenceException until tile is spawned [duplicate]

I have a tile and tile has enemies spawn positions, and spawner script in it. Everything works fine when tile is spawned, my ray hits the collider in tile and enemies get spawned, but my spawn script ...
0
votes
0answers
18 views

Error modify bools from script1 iin script2 then get bools value frrom script2! [duplicate]

I have a GameObject called "emptyobject" with a FullOrFree component attached, containing several public boolean variables: ...
0
votes
0answers
11 views

Can't enable script component on a prefab instance in Unity [duplicate]

Prefab structure: MainObject (parent; prefab instance in the scene) |-Child |-Child |-Triggers |-Trigger1 MainObject has: ScriptIWantToEnable (Script) ...

15 30 50 per page