Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Third Party Gamobject ownership not transferring and getting destroyed with the master client.

Discussion in 'Multiplayer' started by TunerGear, Oct 20, 2023.

  1. TunerGear

    TunerGear

    Joined:
    Sep 27, 2021
    Posts:
    1
    Hey, im using photon pun. I have a spawner script which instantiates the eatables in the gameplay and right after the instantiation, im transferring its ownership to null. The instantiated gamobjects's photon view component's ownership transfer variable is set to takeover.

    But, my instantiated gameobject is still getting destroyed with the master client, how do i stop this from happening? Also I dont have any IPunOwnershipCallbacks in the instantiated gameobject script.