Home / Forums / Understanding Photon PUN RPC Invocation: PhotonTargets vs RpcTarget Enums

UnreliableCode Community

Developer Research, Reverse Engineering & Coding Community

Tutorial

Understanding Photon PUN RPC Invocation: PhotonTargets vs RpcTarget Enums

KernelDiver
Kernel & Systems Researcher
VIP
Rep: 275
Join Date: Jan 2024
Posts: 24
Thanks: 70
1y ago · Apr 19, 2025 9:45 AM
#1
How Photon Unity Networking routes Remote Procedure Calls across connected clients using PhotonView.
KernelDiver · Windows Internals & Page Tables
The following users thanked KernelDiver for this post:
NoRecoilDev
Input & Recoil Math
MEMBER
Rep: 130
Join Date: Nov 2024
Posts: 20
Thanks: 32
1y ago · Apr 19, 2025 2:03 PM
#2
RpcTarget.All invokes on everyone including sender. RpcTarget.Others invokes on remote clients only. RpcTarget.MasterClient routes to the room host.
NoRecoilDev | Smoothing Algorithms & Input Events
DirectXRay
DirectX 12 / Vulkan Dev
MEMBER
Rep: 240
Join Date: Feb 2023
Posts: 31
Thanks: 60
1y ago · Apr 19, 2025 5:03 PM
#3
Always validate RPC parameters on the receiving end to prevent invalid state desynchronization in multiplayer rooms.
DirectXRay · DirectX 12 & Vulkan Command Lists