Which is better to use RPC or RaiseEvent ?

Hello,

When i started Photon i generally using RPC to execute methods,

then after some time i came work around with the photonnetwork.RaiseEvent()

both works similarity

so i wanted to know which is better ?

Answers

  • I prefer RaiseEvent when I send data to a specific player and when the sending object does not have photonview and/or I will send it to another object, since RPC needs to send and receive the RPC of the same object!
Sign In or Register to comment.