- Home /
how to get text object to the server with A specific text?(with mirror)
https://drive.google.com/file/d/1QEyWS9GH3nxxG6-lwwysSabTDBIHeqzO/view?usp=sharing
This is my code and for every client the text is spawned, they do not see the same text, and I want the other clients the text to be my TextInput and not their text input how do I do that?
Answer by lodendsg · Jan 25, 2021 at 12:30 PM
I would do it via a SyncVar of type string on the object
 I would then have the clients notify the server of what value should be applied via a command e.g. 
 CmdSetStringValue(string data);
 The server will take that data confirm its okay to apply and set it to the SyncVar e.g. 
 [SyncVar]
 public string messageData;
 then in the update on the script all you need to do is 
 myTextField.text = messageData;
 A better place to ask this sort of Mirror specific question is the Mirror discord forum ... you can find a link to it on the Mirror store page.
Your answer
 
 
             Follow this Question
Related Questions
Mirrored text for mirror projection 0 Answers
how to get text object to the server with A specific text?(with mirror) 0 Answers
How to make the object and will be created every time in everyone 0 Answers
How to make the object and will be created in everyone every time 0 Answers
gui text mirrored 2 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                