Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

why is my RPC not being called locally

$
0
0
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);
}

Viewing all articles
Browse latest Browse all 15755

Trending Articles