Not getting called on click?

Updated on January 5, 2017 in [A] Unity Scripting
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
8 on January 4, 2017



When i press the button, it doesnt debug.log “ToLobby”

EDIT: The hover and pressed interaction are working.

  • Liked by
Reply
1 on January 4, 2017

Make it log “The button is indeed working” instead of ToLobby.
Also, have you checked if it’s correct? Because it looks quite suspiciously like you wrote “T0Lobby”, not “ToLobby”.

Edit: Sorry, didn’t see that it was a string 😛

Helpful
on January 4, 2017

well no matter what i put, it doesnt debug

Show more replies
  • Liked by
Reply
Cancel
1 on January 4, 2017

AddMessage (“Player ” + PhotonNetwork.player.name + ” has disconnected”);

^^ looks more natural to me.

Helpful
on January 4, 2017

this is a test multipayer game im working on but thx anyways XD

Show more replies
  • Liked by
Reply
Cancel
0 on January 4, 2017

^

  • Liked by
Reply
Cancel
2 on January 5, 2017

Interesting. I don’t know why it doesn’t debug for you, but what strikes me as more interesting are your pictures. How did you post those within the post? I thought the upload pictures button was disabled…

 

Devoted
on January 5, 2017

Oh, I just tried testing it and realized how you just input the url link instead of upload images. 

Nevermind.

But I’ll think on your issue a bit more. Perhaps, restart Unity and try again?

Helpful
on January 5, 2017

i had this problem for a long time and still haven’t figured it out yet, so that mean, i have restarted unity a couple of times now XD.

Show more replies
  • Liked by
Reply
Cancel