why is my RPC not being called locally

Options
Hi there,

I have this RPC method and It's not being called locally!

Console says it's sending RPC to all or player, however it returns nothing... not even an error.

Yes I am running Photon Debug in full.

Here's the method:

public static void AddMonster(GameObject monster)
{
// Add the monster to remote players lists
ScenePhotonView.RPC("AddedMonster", PhotonTargets.All, monster);
}

[PunRPC]
void AddedMonster(GameObject monster)
{
monsters.Add(monster);
}

Comments

  • bazz_boyy
    Options
    lol how do I delete this?

    I figured out why. You can't pass GameObjects over RPC