Linked Questions

-3 votes
1 answer
82 views

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" ...
Rangel's user avatar
  • 5
0 votes
1 answer
59 views

I'm trying to set up a UI system. Say I have a text object 'text' which is visible onscreen. I want to change it with a button press using a script such that the text box's previous string is replaced ...
SPeked's user avatar
  • 1
0 votes
1 answer
52 views

I have a line: private void OnTriggerEnter2D(Collider2D collider) { checkID = collider.GetComponent<PartInfo>().ID; } That PartInfo.cs: ...
Dead Lord's user avatar
0 votes
1 answer
39 views

I have a tags script: ...
Sean Davis's user avatar
0 votes
0 answers
30 views

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 ...
Usmaan Mahmood's user avatar
0 votes
0 answers
30 views

I am trying to fix an error that says "Object reference not set to an instance of an object". The purpose of this script is to spawn a prefab that follows the mouse when you click a UI ...
Jonathan L's user avatar
0 votes
0 answers
26 views

How do I fix it, I don't know how I fix it? Can anyone help me? ...
anii me's user avatar
0 votes
0 answers
25 views

I'm setting up collision detection for my enemy objects and projectile. When I add the detect collision script below, my enemy object just disappears. Projectile has the same detect collision script ...
jenkatan29's user avatar
0 votes
0 answers
23 views

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. <...
Sakuna Madushanka's user avatar
0 votes
0 answers
22 views

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: ...
Yakov Brzlavsky's user avatar
0 votes
0 answers
24 views

I'm getting an annoying NullReferenceException error. Can anyone help? This is the function, and below you can see how it is called: Error message: NullReferenceException: Object reference not set to ...
Scott Weiland's user avatar
0 votes
0 answers
21 views

Folks. I'm trying to set the DisplayName default value directly from the API, the debug log correctly informs the username. But when I believe that it should fill ...
GET's user avatar
  • 101
0 votes
0 answers
21 views

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 ...
LechongManok's user avatar
0 votes
1 answer
32 views

...
user avatar
0 votes
0 answers
20 views

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 ...
duhaonur's user avatar

15 30 50 per page