Photon Multiplayer UI Issue
I'm having trouble seperating each player's text UI (when i try to update the score of one player it updates for all players, how can I seperate them?
Hi,
I don't know what your script looks like but for me it sounds like you forgot to check a photonView.is$$anonymous$$ine
condition when updating the text component. Adding this condition will prevent other client from updating the wrong text component.
Answer by ITZZZETHAN · May 03, 2017 at 12:54 PM
Im not sure if this will work but... Try making a script, add it onto the canvas or UI and do
using unityengine.networking
public class [your script name will be here] : NetworkBehaviour
void Update ()
{
if (isLocalPlayer != null)
{
Return;
}
}
make sure to also give the UI a network identity. This may help out idk Im pretty new to networking myself!
Your answer
Follow this Question
Related Questions
multiple buttons to open world canvases in vr 0 Answers
How to hide x number of button while the button its doing something.. 0 Answers
UI buttons don't work with Canvas Render Mode: Screen Space - Camera. 2 Answers
Canvas not filling up the whole screen in Unity 5 0 Answers
canvas child of another canvas issue 0 Answers