Can NetworkView.owner be set?

Is it possible to transfer "ownership" of a network view to different players over time?

Kinda, but not in a very nice and direct way. From my understanding of Unity networking so far where ever you allocate the networkview.viedID is who the owner is.

For example is you instantiate an object that has a networkview on a client and then on that client says,

var id = Network.AllocateViewID();

obj.networkView.viedID = id;

then the client will be the networkView.owner, if you were to do that on the server, the server would be the owner.

So...

If you want to transfer ownership of an object it should be possible to do by allocating a new view id for the object on whoever you want to own the object and then assign the new id to the existing networkview, and the owner should now be changed.

But you would want to allocate the id first then send an rpc to all the other versions of the object on remote computers to change the id and then set the id. This way you don't break the viewid relationship across all computers running the game.

Hopefully this helps, I haven't actually tried doing this myself but if it is possible to do want you want to do, this is probably the most likely way of doing it.

now there is a solution for photonengine:
https://doc.photonengine.com/en/pun/current/tutorials/ownership-transfer

Or you simply call “photonView.RequestOwnership();” on that object witch owner should be changed