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

Issue with the PlayerNumbering.cs script in the PUN Utility scripts

Hello! I've been using Photon PUN for my game, and I'm encountering an issue. I'm using the PlayerNumbering script to identify the number of the local player and spawn them at different spawn points,...

View Article


Expected Custom Room properties doesn't appear to be working

I am using the following code to connect or create a random room. For Some reason the JoinRandom never finds the created room if I pass in the expected custom room properties. if i don't pass any...

View Article


how to do level based match making

im working on an FPS game and wanted to implement level based matchmaking,does anyone have any idea to how to make level in a multiplayer shooting game?

View Article

Countdown Timer Sync on network

Hello, I want a countdown timer to be synchronized across all clients. I have seen some other forums regarding this but they are quite old or maybe they still work and I missed something. Can someone...

View Article

PUN TO DEDICATED SERVER

Hi, I just created my complete card game using the free version of photon PUN (20 CCU). Now when the host gets a phone call his app goes in the background which stops the game for everybody, As a...

View Article


PhotonNetwork.SetMasterClient used be modders

Is it possible disable switching masterClient in client, modders use PhotonNetwork.SetMasterClient() to become master and kick all players?

View Article

Limiting MasterClient's Control over scene characters.

So i have this very tricky situation i dont know yet how to solve: I have 5 characters in a "lobby" scene (i assume they are owned by the scene by default, hence the master client also owns them). Each...

View Article

Setting IsVisible to 'true' kicks non master players?!

Hi, I'm sure there is a simple reason for this that I'm missing. My game is entirely playable online at this point. A room is created with a master client and several other clients can join. Great! But...

View Article


PhotonView objects get removed 5-10s into game... ONLY in build

This may be a common issue, but I haven't found the exact solution. I have a game that has been working over photon really well through the editor. Multiple clients on different computers can connect...

View Article


OnPlayerEnteredRoom( Player newplayer ) not working

using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using Photon.Pun; using Photon.Realtime; public class LobbyManager : MonoBehaviourPunCallbacks {...

View Article

Received RPC for viewID 0 but this PhotonView does not exist!

I'm trying to sending a message through RPC, not using Photon Chat. I read and followed this documentation:https://doc.photonengine.com/en-us/pun/current/gameplay/rpcsandraiseevent And here's my...

View Article

"InvalidOperationException: Duplicate key 1" crash at RegisterPhotonView

From unity crash reporting I see the following crash, not very often but it affects a decent amount of players. I cannot reproduce the crash and my game works great so it's some kind of flaky error....

View Article

Is there a way to synchronize alterations to a tilemap changed at runtime...

I've been having this issue for a while now and was wondering how to fix it. Basically I have a tree tile and when I left click while my mouse hovers over the tree, it's tile is set to null and an item...

View Article


Player Joined room Message

Hi, I want to make that if the player joins the game it appears a message like Player398 joined the game, I don't know how to do it. I am with this error for a month, please help.

View Article

Delayed destroy photonNetwork

how could I destroy network Instantiated object after few seconds? Destroy (gameObject, 3.0f);

View Article


instance call with rpc

how can i call method in another script with rpc?// else { GameManager.instance.CapturePiece(piece); }

View Article

Locate Master Client GameObject using PhotonNetwork.IsMasterClient

Hello everyone, i'm trying to find my masterClient using photon network, my software consists of instantiate a player at the scene and then find a script witch will save your gameobject if you are the...

View Article


positions and other information not syncing

For some reason when i have two players in a scene nothing syncs between them, like there transforms or anything

View Article

Image may be NSFW.
Clik here to view.

One Room, Multiple scenes - players in different scenes.

Hi All, (I am re posting this question here from the .net section as I believe this is a more relevant board, I did try, but I could not find any way to move it. ) Quick background info: c# developer...

View Article

PhotonView.IsMine doesn't work

Photonview.isMine doesn't work, for example, the person on pc(x) can control the character of the person on pc(y), and I'm checking using Photoview.IsMine, what might be going wrong ?

View Article
Browsing all 8947 articles
Browse latest View live


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