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

Error CS0535 occurred while following the steps of MRTK tutorial in MS...

Hi, I have been facing this error with Hololens 2, Unity 2019.4.28f1, Visual Studio 2019, Photon PUN 2 (2.33.1) ARFoundation 3.1.3, ASA SDK core/windows 2.7.1, Window Mixed Reality 4.2.1 and XR...

View Article


Buffered RPC vs Non-buffered RPC (initializing joining players) + design...

Hello! I'm doing my best to follow any best-practices that exist for Photon, since in my experience networking introduces some not-so-clear architectures compared to offline games. Buffered RPCs seem...

View Article


customized clothes for players

hey guys, I have a rather unique situation that i havent seen to many other developers talk bout yet with photon. my players have the ability to make there own customizable character for my game. so...

View Article

Manual instantiation returns isMine false always

I'm using my own implemented object pooling system, so I can't use PhotonNetwork.Instantiate directly in my project. However, I found an official document that a player can send an event to instantiate...

View Article

No smooth movement on Builds.

Hello! We are currently experience no smooth/lerps from photonview/transforms when making a build target as PC standalone(no vr). It works fine on PC VR + Android VR + mobile, also it works fine in PC...

View Article


In 1v1 match how to re fetch the game data if both players left and rejoin...

I am creating a Chess game with a quick match-making option(1v1). And during gameplay player moves are sent back and forth between two players using RPC's. And the match will have a countdown timer and...

View Article

Does anyone knows how to sync moving platform?

Does anyone knows how to sync moving platform? when i try to sync it the players keep jitter i used parenting before and rigidbody carry but still not sure how to do it i hope someone answer me.

View Article

OnSerializeView sets new value but then reverts it back to previous value

Hi, this is driving me crazy so hope you can help me out. I have a method that is setting an object's boolean parameter (isOnOven) to false. This value is then supposed to be synchronized across all...

View Article


Why are clients receiving messages sent specifically to the master client?

EDIT: I found the issue, somehow the server was sending out one msg per action per player instead of sending all actions together. This is fixed now with the correct sendrate I am currently doing a...

View Article


Synchronising weapons using CustomPlayerProperties?

Hey, i'm trying to synchronise each player's loadout between them and the system I'm using uses CustomPlayerProperties. Here's what I've got now:void Start() { //Set the weapon properties...

View Article

my input values ​​sync late

hi, i have a few questions about syncing my input values. well, I check my input values ​​in the "Update" method and depending on the bool value that is returned to me I do a certain action, and when I...

View Article

Need help to enable/disable buttons for players.

Hi. I have a requirement where I will have 5 players connected to the same room. And when it is the first player turn the UI button should be enabled only to him and it should be disabled to all other...

View Article

Scripting Order

Hi there, I am developing the multiplayer game in unity using photon networking. I have two scenes. The first is the online scene and the other contains the game. I have a player script attached to the...

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

Photon Local Player Appearance

Hello, for a project I need some very specific functions. To explain the situation: I have multiple players in the same Room. One is the main character or observer and the others are in groups. The...

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

"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


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

Pause turn time with PunTurnManager

Hello, We are using Photon.Pun.UtilityScripts.PunTurnManager. We have two timers in the game. One for general (game timer) and one for each player's turn (turn timer). For the turn timer, we are...

View Article

Photon Transform View Not Syncing

I'm not sure what's going on, I have a photon transform view on both my model and the "holder" of the model. It was working just fine, until I swapped out models? Idk I've been working on this for 10s...

View Article
Browsing all 8947 articles
Browse latest View live