Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

GameObject gets deleted automatically after creation on Client or Server Unity3D

$
0
0
I am trying to make offline multiplayer game in unity3D. All connections are working fine but I have not created an object other than the players until now. When I create a GameObject on client's RPC funtion, it gets created and destroyed instantly. I have tried creating it in its update func and on server, but same result all the time. Here's the code:

[ClientRpc]publicvoidRpcPlayerShowCards(){GameObject x =(GameObject)Instantiate(gameObj,Vector3.zero,Quaternion.identity);}...

GameObject gets deleted automatically after creation on Client or Server Unity3D

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>