- Home /
【PUN2】I want to disable the instantiation of an object in PhotonView at a specified time.
Objects to which the PhotoView component is attached are instantiated and visible to other players in the room.
Is it possible to disable this instantiation in the PhotonView at a specified time?
Specifically, I want to disable the instantiation only while the LocalPlayer and the other Player are in different Scenes. Objects that use PhotonView are instantiated even if the players in the room are in different Scenes. Normally, players in the same room should not be in different Scenes, but in my game, such a situation inevitably arises for a moment.
In this case "If the player is in one Scene, don't instantiate him in PhotonView". Is it possible to do something like this?
Translated with www.DeepL.com/Translator (free version)
Answer by Kosho206 · Jan 16, 2021 at 10:39 PM
It didn't seem to be possible to disable instantiation using PhotonView. However, I was able to solve this problem by writing the following code: "Deactivate the network object when you are in a Scene. However, I was able to solve the problem by writing the following code
Your answer
Follow this Question
Related Questions
UNet changing player prefabs int the network lobby sample. 0 Answers
[URGENT] Problem with synchronizing objects loaded from server for multiplayer 0 Answers
Unity Network problems, updating an individual object 0 Answers
Player object on host can interact with objects, client players cannot. 0 Answers
Mirror Network transform not working 1 Answer