Questions tagged [photon-pun]
57 questions
1
vote
0 answers
Unity Photon Pun 2 RPC Issue
I'm trying to use an RPC to tell all clients in a room to start the game. The RPC is called successfully on every client's game, but the photonView is always the master client's no matter which client it is run on.
I'm using this line to instantiate…

CladCobra
- 11
- 4
1
vote
0 answers
PUN2 nonmaster client cannot leave room
I have a 2 player board game where one client is the master client and creates a room which the second client then joins via JoinRandomRoom.
My intention is that once a game has ended, if both players choose to they can have a rematch, but if either…

agentsmith200
- 101
- 8
1
vote
1 answer
Line Renderer not visible to other Players | Unity PUN 2
I'm trying to sync a Line Renderer which is given out by a Grappling Gun and it doesn't seem to be working. I've seen other forums, answers, etc but I'm just stuck with this for the past 2 days.
Here is the code which I'm using:
//The Script used to…

Saharsh
- 39
- 1
- 12
1
vote
0 answers
PUN + Standard assets character controller
So, I have 3 scenes a singleplayer scene, a multiplayer scene and a menu scene. When more then one player joins onto the multiplayer scene they both move in the exact same direction. The deafult PUN character controller does not work very well + the…

JimmyBinoculars
- 17
- 5
1
vote
0 answers
Loading an avatar using ReadyPlayerMe avatar url in Photon Pun2 Multiplayer environment
I am beginner in unity/game development. I have start working with ready player me for creating realistic avatar and it works great.
But now I am trying to use this in multiplayer environment with Photon.Pun using provided url in c# but it is not…

Sachin
- 19
- 2
1
vote
0 answers
Unity Multiplayer Photon Engine Game on WebGL not connecting to remote computers
I have a multiplayer game (Shooter Sports) which I recently posted on itch.io. I made the game using Unity and Photon Engine (for the multiplayer aspect). However, when testing the game after publishing it, I find that I am unable to connect and…

Neil Sriram
- 11
- 1
0
votes
0 answers
Unity XR and Photon pun
I have successfully created an XR project using Photon PUN networking, and the multiplayer functionality works well on Oculus. Now, I need to build the same project for different devices, such as Oculus and WebGL. What are the steps I should…
0
votes
0 answers
WebSocket error in Unity WebGL multiplayer game using Photon
Using Photon Realtime in Unity WebGL multiplayer game, when I play game 2nd or 3rd time giving this error and photon is getting disconnected after this error, I am running games on Firefox browser, using UDP protocol and the error is also occurring…
0
votes
0 answers
Unity convert normal instantiated object to a photon pun instantiated object?
I want that my game works in single player and in multi-player. In single player mode, the player should no be connected to the internet so PhotonNetwork.Instantiate does not work. But when the player is connected to the internet and connects to…

legoeugen Loks
- 13
- 4
0
votes
1 answer
Synchronizing Spawn game object in unity and using Photon pun 2
Working on Multiplayer Game using photon pun 2 in Unity. I am trying to synchronize Box which is spawned when player trigger a function. So i need to synchronize game object for all players.enter image description here
Here is Spawning Codeenter…

Mansoor tariq
- 3
- 3
0
votes
0 answers
Photon Pun player Custom properties
in our game, there are only two players in each room so i doing this to update ultimateNumber OnTriggeEnter for each player while the other player can see the updated value
the problem here both player update the value, I want to separate each…

Over Time
- 21
- 4
0
votes
1 answer
Photon Unity players don`t see each other
I use photon PUN for creating a simple Unity game. When player joins room-- new scene is loading and one object spawns player. This code spawns player:
`using Photon.Pun;
using UnityEngine;
using Random = UnityEngine.Random;
public class…

JustMaxim
- 1
- 2
0
votes
1 answer
Networking a Clients float value through Photon Fusion
I am currently developing a multiplayer racing game in Unity that utilizes Photon Fusion. In all the documentation, Photon Fusion uses the Input methods to sync the positions of the players and everything under FixedUpdateNetwork(). But in my game,…

JOYSON S T
- 168
- 2
- 11
0
votes
1 answer
Unity3d and Photon: Mouse controller script causing unintended behavior with multiplayer mouse inputs
I am relatively new to C# and PUN but I felt like giving it a shot. Unfortunately, I am currently having an error that I can't seem to fix no matter what I do! I am making a 3D top down game where the player looks at the mouse and rotates according…

David Fusco
- 1
- 3
0
votes
1 answer
Find a friend is not working when i connect to lobby first time
I want to check the online status of friends when I connect the first time with Photon. The other player can't find me online. But after playing one match, when I rejoin the lobby it finds me online and on the Master server. What's the problem? The…

Kashif Sattar
- 1
- 2