possibly photonView.RequestOwnership(); not working?

Options
Hello guys. I have scene objects which send RPCs. Before sending each RPC, I check:

if (!photonView.isMine) { photonView.RequestOwnership(); }

but still after this it shows photonView.isMine = false. Why is that?

Comments

  • jeanfabre
    Options
    Hi,

    -- have you set the photon view owner property to "request" or "TakeOver"? i won't work if it's "fixed"
    -- have you implemented OnOwnerShipRequest() callback?

    Check the DemoChangeOwner-Scene in the demos folder, and check if that scene works for you. Then you can compare setup and code with your own implementation.


    Bye,

    Jean
  • Thanks. Yeah photonView had fixed, I changed to takeover and all is good now.