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

Couldn't understand why the parameter of a [ClientRpc] method is null.

$
0
0
[​IMG]

I honestly don't know what could cause it to become null. When I mean "entering", I mean "stepping into" the code.

Here's the full code:

Code (CSharp):
  1. using UnityEngine;
  2. using UnityEngine.Networking;
  3. using System.Collections;
  4.  
  5. public class Spawner : NetworkBehaviour {
  6.     public GameObject spawningPrefab;
  7.  
  8.     public override void OnStartLocalPlayer() {
  9.         base.OnStartLocalPlayer();
  10.  
  11.         if (this.isClient) {...
Couldn't understand why the parameter of a [ClientRpc] method is null.

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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