- Home /
Question by
mr_poo2 · Jul 19, 2013 at 11:25 PM ·
networkingnetworkview
Username not showing on other players head??
im trying to get the username of the other players to show above head this script is working so far but does not show other players username here is the script.
#pragma strict
static var Name : String = "CHAR";
static var Score : int;
var isNameView : boolean = false;
function Start () {
}
@RPC
function Update () {
if(isNameView){
if(networkView.isMine == true){
GetComponent(TextMesh).text = Name;
}
}
}
Comment
You shouldn't make
Update
an RPC functionYou never call the RPC function
Your answer
![](https://koobas.hobune.stream/wayback/20220613110452im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Is server the sender of RPC? 0 Answers
A question regarding networking... 2 Answers
How to solve RPC error 1 Answer
AllocatedID error 1 Answer