Difference between RPC and Raise Event
Options
Hello,
Could some one tell me the difference between RPC and Raise Event?
As I understand it an RPC call on a game object tells all clients to execute a function on that game object. What does Raise event do.
Could some one tell me the difference between RPC and Raise Event?
As I understand it an RPC call on a game object tells all clients to execute a function on that game object. What does Raise event do.
0
Comments
-
Hi @Shibli,As I understand it an RPC call on a game object tells all clients to execute a function on that game object.
This is basically correct, yes.What does Raise event do.
RaiseEvent is more or less detached from a GameObject. This means that you can use an object A to raise an event by using PhotonNetwork.RaiseEvent and an object B to receive this event, which is different to RPCs where you only have one object. RaiseEvent basically allows you to have a mediator for all of your custom events.0