- Home /
Question by
D3m0nE · Jul 11, 2013 at 09:17 AM ·
gameobjectinstantiatenetworkrpc
Problem in Instantiate Gameobject Through Network
Hello i have Small Problem With Instantiate Game-object using RPC
for Example i want To Instantiate a Cube
using This :
networkView.RPC("SpawnCube",RPCMode.AllBuffered,MyTransform.position,Quaternion.Euler(MyTransform.eulerAngles.x + 90,
MyTransform.eulerAngles.y, -45));
[RPC]
void SpawnCube(Vector3 fireFrom, Quaternion direction){
Instantiate(Cube, fireFrom + new Vector3(0,1,0), direction);
}
now i joined the game i Instantiated a Cube perfectly. all player can see the cube now but if someone Disconnect Then Connect Again [i mean Reconnect] he cant see the cube
i need to know how to make the new players joined the room can see the Instantiated Cubes
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613105907im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Send GameObject active in network to all clients 2 Answers
RPC sync issues 0 Answers
RPC on network instantiated GameObject beats instantiation 0 Answers
Network Instantiate PlayerPrefab Problem 2 Answers
problem with RPC instantiate on network 2 Answers