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

Does not contain a definition for `clientOwnedObjects'??

$
0
0
So Unity gives me this error when trying to retrieve the player object when he disconnects

The docs tell me that clientOwnedObjects can be found in NetworkConnection:
http://docs.unity3d.com/ScriptReference/Networking.NetworkConnection.html

This however returns an error:
Code (CSharp):
  1. void OnServerDisconnect(NetworkMessage mess) {
  2.    Debug.Log(mess.conn.clientOwnedObjects);
  3.    NetworkServer.DestroyPlayersForConnection(mess.conn);
  4. }
And I get this error:
Does not contain a definition for `clientOwnedObjects'??

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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