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

Custom Properties in lobby [PUN2]

I'm working on making the lobby for my game, and I created the room with a RoomOptions that contains both a CustomRoomProperties hashtable and a CustomRoomPropertiesForLobby string[] so that I can...

View Article


Player prefab suddenly disappears from the scene

Hello, I am developing a coop fighting game and I have a problem with Photon integration.After I stopped synchronizing clients using photon transform view and photon animator view I made it synchronize...

View Article


Image may be NSFW.
Clik here to view.

can't save playerslist via stream in photon

Hello, When players join it will add the player object to the List i defined which is public static List players = new List(); like this way players.Add(player); so the problem is that the new players...

View Article

Instantiate doesn't work in offline mode

Hello, PhotonNetwork.Instantiate should work in offline mode, however, it is throwing the following error despite offline mode being enabled: Failed to Instantiate prefab: player 3D. Client should be...

View Article

Why created game can become invisible?

Here is a code I use to create room on cloud Photon server and to connect clients to it: private static Coroutine updateCoroutine; public override void OnConnectedToMaster() {...

View Article


What is the reason for rooms to become invisible?

Here is a code I use to create room on cloud Photon server and to connect clients to it: private static Coroutine updateCoroutine; public override void OnConnectedToMaster() {...

View Article

Problem with RPC

Hello, I'm setting player's character model by RPC method, the problem is that the new players are not getting the RPC Method and they can't see the instanited player's character model, any ideas? :#

View Article

OnDisconnected is being called more then once.

Is this suppose to happen? The first time i get a timeout error, but the next time the cause is none. Currently i'm on PUN 2.2. Thanks in advance!

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


PUN 2, OnPhotonInstantiate isn't being called

Hi all, I was wondering how exactly do I get OnPhotonInstantiate to be called correctly? What I have right now is a script inheriting from MonoBehaviourPunCallbacks and is subscribed using...

View Article

What is the right way to do shooting with Server Authority?

Currently, players send the bool "IsShooting" on photon stream (which is just the Input.Getkey bool). on the MasterClient, I create a ray cast for the players with a true IsShooting and damage if hit....

View Article

Problem with using TagObject

Hello, im using TagObject to define my gameObject, the problem is that photon cloud returns normal object not the gameobject and im trying to convert it to gameobject like this way...

View Article

Multiplayer Soccer Ball Sync Issue

Hello, I am making Multiplayer soccer ball game with cars like Rocket car league. Cars sync is working properly But Ball is not. When one player is connecting to the match room, the ball works fine,...

View Article


PUN2: Found Bug in OnPhotonPlayerPropertiesChanged() not raising

OnPhotonPlayerPropertiesChanged() will not be raised when we call Player.SetCustomProperties locally. In the Pun1 it worked. if the photon was open source, i could correct these found bugs. :( i dont...

View Article

PUN2 unexpected disconnect

After updating to PUN2 i started to receive this error: It disconnects non master client when master client calls PhotonNetwork.LoadScene, as of my observations. Please help Got a unexpected Disconnect...

View Article


freeze player in the game

https://www.youtube.com/watch?v=nAkYWLEwEYc&feature=youtu.be how can I solve this problem ?

View Article

RPC Calls on the right GameObject

Hello, I am new to Photon and have wrapped up my Project to use the basics of PUN 2 by now. My Problem is the following: You can think of games like Diablo 3 and Path of Exile, basically Action RPGs. I...

View Article


Image may be NSFW.
Clik here to view.

Service Settings Missing Options

Hi! I was watching some tutorials of PUN and I noticed that my Photon Service Settings are totally different from the video's ones. Here's a pic of my settings. As you can see, I can't check the...

View Article

Game randomly loads first scene right after joining a room

I'm being plagued with a problem where as soon as I join an existing room, the player that just joined will be sent back to the first scene with no console log. I'm unsure how to fix the problem, since...

View Article

Image may be NSFW.
Clik here to view.

Synchronizing game timer between clients

I'm working on a fps game and each room has a timer that when it hits 0, the room closes. I'm having trouble synchronizing the timer between clients, so when a new player joins the room, the timer for...

View Article
Browsing all 8947 articles
Browse latest View live


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