Change Image Sprite
Options
Hello! I have a problem, I can not program an image to change sprite.
For the text is easy, you write :
textPlayer.text = PhotonNetwork.PlayerList[1].NickName;
but how to change the sprite of an image is more complicated.
How do I make each image belong to a player and change the color with some variable?
Help me please... It's not that I do not know anything, it's that I do not understand, I've done the player, the lobby, the room, I've also named the player. but I want to put the image and I do not know how to do it.
For the text is easy, you write :
textPlayer.text = PhotonNetwork.PlayerList[1].NickName;
but how to change the sprite of an image is more complicated.
How do I make each image belong to a player and change the color with some variable?
Help me please... It's not that I do not know anything, it's that I do not understand, I've done the player, the lobby, the room, I've also named the player. but I want to put the image and I do not know how to do it.
0
Comments
-
I have already solved it!0
-
Care to let us know?0