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

ClientRPCs and multiple script instances on a single object

$
0
0
Hi, I've run into a problem when I have multiple instances of a script attached to a single networked object. When I call an RPC on the server script, it gets called only on one of the client scripts always (regardless of which server script called it). Here's an extremely simple test script:

Code (csharp):
  1. using UnityEngine;
  2. using UnityEngine.Networking;
  3. using System.Collections;
  4.  
  5. public class DummyMessage : NetworkBehaviour {
  6.  
  7.     [SerializeField]
  8.     string name = "Dummy";
  9.  
  10.     [ServerCallback]...
ClientRPCs and multiple script instances on a single object

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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