”RpcTarget.AllViaServer"

Does PhotonFusion have an equivalent to pun2's ”RpcTarget.AllViaServer"?

Best Answer

  • Isaac_Augusto
    Answer ✓

    Hey,

    An equivalent would be this RPC signature:

    [Rpc(RpcSources.All, RpcTargets.All, InvokeLocal = false)]
    

    It can be called by all players and sent to all player, but it's not executed locally.

    Worth mentioning that RPCs in Fusion are mostly case specific and you can and should use state transfer most of the times instead.

    -----

    Isaac Augusto

    Photon Fusion Team

Answers

  • Isaac_Augusto
    Answer ✓

    Hey,

    An equivalent would be this RPC signature:

    [Rpc(RpcSources.All, RpcTargets.All, InvokeLocal = false)]
    

    It can be called by all players and sent to all player, but it's not executed locally.

    Worth mentioning that RPCs in Fusion are mostly case specific and you can and should use state transfer most of the times instead.

    -----

    Isaac Augusto

    Photon Fusion Team