How can I get the "Photon.Realtime.Player" with a "PhotonView"

Options

So what I want to do is to call a function which takes in a "Photon.Realtime.Player (Player)" but the component from where the Function is called only knows its PhotonView. How can I achieve this or is there a way arround? 

Best Answer

  • Desaw
    Desaw
    Answer ✓
    Options

    No need to answer anymore, I worked arround it

Answers

  • Desaw
    Desaw
    Answer ✓
    Options

    No need to answer anymore, I worked arround it

  • JohnTube
    JohnTube ✭✭✭✭✭
    edited March 2022
    Options

    Hi @Desaw,

    Thank you for choosing Photon!

    I hope I'm not too late for this:

    you could make use of photonView.Controller or photonView.Owner or photonView.CreatorActorNr.

  • solidysnake23
    edited December 2022
    Options

    @Desaw how did you made it?

    i've also get the same problem