Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine

I dont know what photon.pun.photon stream queue.deserialize is and how to fix...

InvalidCastException: Specified cast is not valid.Photon.Pun.PhotonStreamQueue.Deserialize (Photon.Pun.PhotonStream stream) (at...

View Article


invalid cast exception

i am getting this error InvalidCastException: Specified cast is not valid.Photon.Pun.PhotonTransformViewPositionControl.DeserializeData (Photon.Pun.PhotonStream stream, Photon.Pun.PhotonMessageInfo...

View Article


Image may be NSFW.
Clik here to view.

PUN2 and HTC VIVE Eye Tracking

Please help me because I am having trouble syncing facial expressions when using PUN2 and HTC VIVE Pro Eye.I thought it would be better to synchronize the Blendshapes values, so I created the following...

View Article

Photon Transform View Rotation Sync Issue

Hi there,just a quick question here.I use a photon transform view to sync players rotation over the network.Now as long as the the ping of (let say) two players is quite low (<50) the rotation sync...

View Article

More than one player want to grab a gameobject at the same time, how to solve...

Hey, the goal is for one player to take a gameobject away from the other player. How can one player take something from the other player's hand without the first player having to let go? Currently,...

View Article


Asset Bundle Functionality?

On any photon product in Unity, Is it possible to load a scene from a server as an asset bundle, and have networking functioning?

View Article

how do i show latest data to a player who got disconnected and rejoin the game?

I'm making 2 players simple turn-based game, in which first player makes a word and passes the turn to another player and all words made by players are visible to each other. Till here everything...

View Article

PUN 2 UWP Build Errors

I am using Unity 2019.4.10. I am able to import PUN 2 and no errors are displayed after importing. But when I try to build for UWP then I am getting 113 errors. Some errors include : 1....

View Article


Why? Help 60 sec and out!

Hello. I'm desperate.In my game, I connect to photon, connect to lobby, create a room and enter it. Everything correct and with the correct logs.When I do it in "editor", the player stays without...

View Article


Player.ActorNumber will change when player leave

Why do you set it like this

View Article

Urgent Problem. Thanks

Hello. I'm desperate.In my game, I connect to photon, connect to lobby, create a room and enter it. Everything correct and with the correct logs.When I do it in "editor", the player stays without...

View Article

Image may be NSFW.
Clik here to view.

[MUST FIX] How to reduce GC Alloc in PhotonHandler.FixedUpdate()?

Ideally, I would like to reduce GC Alloc to zero, or as close to zero as possible, right now it is horrendous. Would switching from RPCs to RaiseEvent allow us to fix this? Or is there some change we...

View Article

Help me error CS0117: 'Application' does not contain a definit

how to fix i wrote :Application.LoadlevalPhotonNet..... the same thing using SceneManagement Everything is there but I don't know the reason for the error is it possible to fix it somehow? (and how )

View Article


[Bug] Reset DisconnectedCause before entering offline mode

Hey, we have discovered a bug. When a user gets disconnected from the server for the first time and then creates an offline room, subsequently leaving that room, the OnDisconnected event is triggered...

View Article

Duplicated PhotonViews After Disconnect

I've been banging my head against a wall for months on this as it makes zero sense, so I'm hoping someone might be able to shed some light. It seems whenever a plyer forcibly removes themselves from...

View Article


Can't Log back when switching scene

So basically the issue im having is if the Player/Master client, Closes the application, they can log back and get their prefab back and controll it. the problem comes when Im trying to take the player...

View Article

too many/few incoming commands in package: 0>100

Hello there, suddenly my game stopped working today which was working fine yesterday. I checked the log and it says that (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 39) 2021-05-27...

View Article


How to use the PlayerNumbering script?

Hi guys, I'm still learning PUN 2 and facing a problem I can't solve.I've tried to use the PlayerNumbring script but it always gives me an error that I don't know how to solvepublic static int...

View Article

Is Unlocking China region for PUN(version 1) possible?

I have just checked, and it appears that the forum has become read-only. I'll be moving to Discord.Thank you all!---Dear Photon,I wanted to inquire about the possibility of using a server for China in...

View Article

is it ok to have multiple app and voice ids on one unity project?

i was making this game and im curious to know if it is ok to have multiple app and voice ids for more player slots.

View Article

how to get lobby statistics while player is in a room?

hi.it seems that lobby statistics doesn't update while player is in a room.. so how can i get lobbies data and don't leave the room?

View Article


Even if the ping value is very low, the room cannot be created, prompting...

Even if the ping value is very low, the room cannot be created, prompting clientTimeout

View Article


The interval between receiving data is always very long

Two clients, one of which acts as the host, sends data every 33ms, and the other client receives data not at 33ms. Considering network fluctuations, I guess a few milliseconds is normal. But in fact,...

View Article

Image may be NSFW.
Clik here to view.

Problem with Player Controller management.

Hello! I have a problem with the PlayerController.cs script - for example, when I create a room and a second player connects to me, it turns out that I control them, and he controls me. How to fix...

View Article

How can i track rect transform position.

For track transform we add photon view on it and add transform component in observed component. But i am not able to add rect transform in observed component. How can i track rect transform position.

View Article


Lobby CallBack

Hi all.Are there any options to create an event like PhotonNetwork.RaiseEvent but in the Lobby.I want to initialize this event in OnCreatedRoom to get PhotonNetwork.GetCustomRoomList(customLobby,...

View Article

Image may be NSFW.
Clik here to view.

Basic PUN Trouble

Hello everyone-I have been trying out PUN for the first time. After following the documentation, I got stuck on step 4 ("Game Manager & Levels"). I am at the issue where if you hit the quit button...

View Article

"Can I build on a virtual machine and connect as the Master to have a...

Hello, I'm developing a project and I have a question about servers.I understand that with Photon, I can transmit data from clients to the Master, but I need my project to support more than 500 players...

View Article

After Leave a Game, Player is unable to join any game.

Hello, I am using latest Pun2 and Unity as the game engine.I am developing a game where players can match-make with random users, using PhotonNetwork.JoinRandomRoom()Once Player found and joined a...

View Article



Image may be NSFW.
Clik here to view.

Animations are looping for other players.

I'm trying to create basic sit animation for players and i'm using 2 animation bools for that. Here is my code: private void Update() { if (!PV.IsMine) return; if (can_sit) { if...

View Article