Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Browsing all 8947 articles
Browse latest View live

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 Article


how 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 Article


Architecture 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 Article

JoinRandomRoom 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 Article

PUN 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 Article


Mixed 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 Article

Getting 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 Article

Image may be NSFW.
Clik here to view.

VS 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 Article


Multi-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 Article


Instantiate 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 Article

Why 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 Article

Why 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 Article

Room 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 Article


Are 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 Article

Callback 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 Article


PUN 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 Article

Error 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 Article


I 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 Article

Is 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 Article

can 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
Browsing all 8947 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>