Gameobject name is not changed for all clients

Options
Hi, I want to instantiate some objects over the network and change its name. I instantiate them but the name is not changed for clients. here is my code :

[PunRPC]
private void RPC_InstantiateObjects()
{
var bus = PhotonNetwork.InstantiateSceneObject(Path.Combine("Network", "Magistrala"), new Vector3(-0.259f, 0.5971f, -2.167f), new Quaternion(0, 90, 90, 0), 0);
var tablet = PhotonNetwork.InstantiateSceneObject(Path.Combine("Network", "TabletaDisplay"), new Vector3(-0.5f, 0.5902f, -2.167f), new Quaternion(0, 90, 90, 0), 0);

int index = bus.gameObject.name.IndexOf("(");
if (index > 0)
bus.gameObject.name = bus.gameObject.name.Substring(0, index);

int index2 = tablet.gameObject.name.IndexOf("(");
if (index2 > 0)
tablet.gameObject.name = tablet.gameObject.name.Substring(0, index2);

RandomTablet();
}

And here I call the method:
public override void OnJoinedRoom()
{
if (PhotonNetwork.IsMasterClient)
{
PV.RPC("RPC_InstantiateObjects", RpcTarget.All);
}
}

Has anyone any idea why the name is not changed for clients ?

Comments

This discussion has been closed.