- Home /
UI in multiplayer problem
I've been having a problem with the UI system were i can't get the UI Canvas in Screen-Space Overlay mode to only show to one camera (one player/client). Also if you don't already know culling masks don't work with the Screen-Space Overlay mode.
Answer by danventus · Oct 05, 2014 at 02:06 PM
So even though no one answered my question, I ended up figuring it out myself.
[RPC]
void TurnOnUI(Canvas UI)
{
UI.gameObject.SetActive(true);
}
The answer is that you have to use RPC and [SerializeField] to get the UI to only be active for you. Its kinda tricky but it works. If you have anymore questions on how I did this i'll answer them below.
Answer by Infinity_way · Jul 27, 2017 at 11:25 PM
can you give me more details about it? right know every change i made on the canvas UI shows changes only on the server, clients can't see the changes i apply.
Adding the Canvas to private gameobject and turning it on by script can do the job? thanks in advance for any answer you can give, since this thread is years old already.
Your answer
Follow this Question
Related Questions
picture in picture 3d. 0 Answers
Runescape style window? 1 Answer
Gui object to mouse position 1 Answer