Search Unity

Help Wanted [PUN2] Are there ways to know if a RPC has been received?

Discussion in 'Multiplayer' started by Chr0my, Jul 19, 2020.

  1. Chr0my

    Chr0my

    Joined:
    Dec 28, 2018
    Posts:
    2
    Hiya!

    Question:

    Is there a way to say - OnRPCReceived("RPC_Anything").do something.

    I just want to change the text, when the rpc is received.

    Sorry if you don't understand.
     
  2. Barry100

    Barry100

    Joined:
    Nov 12, 2014
    Posts:
    195
    surely its just a class with a method of pun so as long as you have pun referred to in class it should work as you have asked.

    Go look at the OnRPCReceived class and see methods of it.
     
unityunity