Event is called twice to the second player
Event is called twice to the second player must be called once private readonly byte MoveUnitsToTargetPositionEvent = 0; void Awake() { PhotonNetwork.OnEventCall += EventNetworkMoveChess; } public void...
View Articlehow to transfer game object ownership?
Hello, I am not so good with networking, (started it recently). In my game, I don't need any player prefab, there is two sides, let's say blue and red, I want the red player to have access to the red...
View ArticleArchitecture for a MOBA
Hi, I have decided to use Photon Unity Networking for my project which is a 3v3 MOBA game with similarities with League of Legends or Battlerite. I have found 3 ways for the network synchronization but...
View ArticleJoinRandomRoom with same properties is failing in Editor after working for...
I was running some variable sync'ing stress testing (changing names and avatars with the push of a button rapidly). After the third round of doing some of this, my Editor will no longer find matches...
View ArticlePUN v2 - Photon Transform View Interpolation not working?
After using PUN v1 for a while I switched to v2. As always, I created a player prefab with a Photon View and a Photon Transform View (https://prnt.sc/l6esgc). The movement synchronization works, but...
View ArticleMixed Reality Acer with Unity
So I'm trying to set up a simple scene in unity where different players can interact with each other online, a la VRChat. I'm having a hard time implementing with this using MRTK and I was hoping I...
View ArticleGetting room list in PUN 2
Hi, I'm new to PUN, and decided to use V2. How can I get a list of all the active rooms that users are in? The documentation suggests using PhotonNetwork.GetRoomList(), but this method does not exist...
View ArticleVS Code dont recognize Photon.pun /Realtime
When I create a new archive on Unity and open it on VS code it doesn't recognize Pun/realtime/Chat on Photon namespace , But it does recognize it after restarting VS Code . Its kinda annoying...
View ArticleMulti-player for non-scene based game.
Hello, I'm creating a world builder game where users can create worlds which can get saved to disc, and shared with other users who can download and play. When a saved world is loaded, all the objects...
View ArticleInstantiate non-prefab objects?
The documentation for InstantiateSceneObject says "Only the master client can Instantiate scene objects. Instead of using prefabs in the Resources folder, you can manually Instantiate and assign...
View ArticleWhy photon unity networking 2 settings does not have the options self hosted??
The PUN2 does not have the option self hosted as Photon Unity Networking Classic,so how to configure it then I can use the self host feature??
View ArticleWhy can't I connect to my server anymore?
I can connect from the host machine for obvious reasons (as seen from this error message below) but only the host machine.. I am hosting over tcp and the connection is NOT set to 127.0.0.1 in the...
View ArticleRoom failed after an open time
Hi, When creating a room, when another player tries to enter it if it takes about 30 seconds to enter the room, it can not enter, I am trying to solve this problem but I can not find explanation in my...
View ArticleAre your RPC's failing in offline mode?
Make sure you don't set PhotonNetwork.OfflineMode = true; in Awake()... it doesn't work! Under Start() it works fine.
View ArticleCallback for master client switch failed.
How can I handle cases where SetMasterClient() fails? Is there a callback that will be called? E.g. sometimes we get: "Operation failed: OperationResponse 252: ReturnCode: -2 (MasterClientId value '2'...
View ArticlePUN Equivalent for UNet SyncList
I've written my own List container backed by a resizing array (just like C#'s List implementation) and added to it UNet's SendMsg scheme. I've written this to send the custom type via if...
View ArticleError using PhotonNetwork.ConnectToBestCloudServer().
Hi! Just upgraded to PUN2, but I seem to get an error when using PhotonNetwork.ConnectToBestCloudServer(). I get the following error: "GetRegions failed. Can't provide regions list. Error: -2: Missing...
View ArticleI am Complete new to photon.
I am Complete new to photon. I am working on a project. Never before have I ever made a online game. So please any one can help me to send some photon tutorials for begineer. Thankyou it will help me a...
View ArticleIs there a command to make objects synch data?
It seems like information is only sent between the Photon Views when the variable changes. However, if player 1 assigned something before player 2 joined, it doesn't seem to force that variable to...
View Articlecan you store maintain player variables on same account login across multiple...
can you store maintain player variables on same account login across multiple application instance on different rooms. is it possible do do this in photon server side?
View Article