title: Pass gameobject through RPC call
body: <p>I'm trying to pass a gameobject through a RPC call so I can update the sprite renderer on that object for each player to change their colour. However When I try and do this i get an error saying <code>Write failed. Custom type not found: UnityEngine.GameObject</code>. Am I able to pass a gameobject as a parameter? Or is there a better way of getting the gameObject associated with a PhotonView in the scene?</p>
  <p>NetworkPlayer.cs</p>
  <pre><code>void Start()
  {
      rb = GetComponent&lt;Rigidbody2D&gt;();
  
      GameObject go = gameObject;
  
      string[] array = {pd.m_Player.ColorTheme, pd.m_Player.Color1, pd.m_Player.Color2};
      pv.RPC(nameof(UpdateColor), RpcTarget.OthersBuffered, array, go);
  }
  
  [PunRPC]
  void UpdateColor(string[] theme, GameObject go)
  {  
      Debug.Log(&quot;gameObject is &quot; + go);
  }
  </code></pre>