Questions tagged [photon]

Photon is a realtime multiplayer cross-platform api from Exit Games.

Photon is a realtime multiplayer cross-platform api from Exit Games. It provides it's services in two forms. You can either choose to have it's fully managed Cloud service or can implement your own Server via it's Photon-Server api.

Links:-
Photon SDK

664 questions
1
vote
1 answer

Is it possible for only masterclient to load photon object?

Example scenario : there are 4 seats on the stage, and I have an int value named x. The x value increases by 1 each time the player sits in the chair. When you get up from the seat, the x value decreases by 1. I send this value to all players with…
druu55
  • 35
  • 6
1
vote
1 answer

How to Gender Filtering with Photon?

I'm developing a multiplayer game with unity. I am using playfab and photon plugin in the game. Players choose gender when logging in and I save this selection to player data in playfab. Also, I am making a simple match system with photon. (The…
druu55
  • 35
  • 6
1
vote
1 answer

Character selection and uploading characters to the scene with photon pun2

I'm trying to develop a 3D multiplayer game with Unity. I don't know much about Photon, there are similar questions to the one I'm going to ask, but I still haven't found a solution. I will be glad if you help. I have two scenes named "menu" and…
druu55
  • 35
  • 6
1
vote
1 answer

Changing Room Options after Room Creation? (Unity/Photon2)

I was trying to make a room not joinable after the game has started. I checked other solutions but they seemed outdated. This is where I created the room: RoomOptions ro; public void OnClickCreate() { if(RoomInput.text.Length > 0) { …
Bob Ni
  • 21
  • 4
1
vote
0 answers

Photon Voice - Combine Recorder and Audio Source (Karaoke App)

I'm developing a karaoke application but I'm having difficulty getting the audio from the mic and the audio from the music to sync on clients. My solution right now is using Photon Voice to end the mic (as normal) and the music is being transferred…
1
vote
4 answers

CreateRoom failed. Client is on MasterServer

When i trying to create room, nothing happens and there is an error in title. What should I do? If it is possible, than write what specificly should be replaced. Full error: CreateRoom failed. Client is on MasterServer (must be Master Server for…
user17833773
1
vote
1 answer

How to disconnect from PhotonNetwork after a game is Played in Unity?

Right I found this question asked elsewhere but I am really stuck at the point where none of the solution is unfortunately working. So when the game gets over, I have to load either the menu screen or random battle screen or the friends screen. But…
chethanv77777
  • 480
  • 9
  • 18
1
vote
0 answers

Player is not rotating towards the mouse (Unity Photon Pun2)

I am a quite new to programing and networking, so I'm currently stuck on a problem that regards Unity and Photon 2. The problem is the players in my multiplayer game are not rotating towards the mouse. When I spawn in the players, I put the camera…
Bob Ni
  • 21
  • 4
1
vote
1 answer

How to fix "Cannot implicitly convert type 'void' to 'UnityEngine.AsyncOperation"?

I've tried adapting the usual single-player loading bar code to one that'll work for multiplayer using PHOTON. Below is the code I've tried. using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using…
Nationz
  • 13
  • 2
1
vote
1 answer

Displaying a string of one of the players in a Photon Room (4 players) when a condition is met

Playerprefs has a way of setting and getting players' info such as string, int, etc. I am using photon to set and get each player's string but it only captures one local player! The string which each player enters should, later on, be displayed to…
Shem Tom
  • 56
  • 1
  • 9
1
vote
2 answers

Photon only showing one player

in photon the first person to join can see both players but second to join cant see the first. anyone know why? connect to server script using System.Collections.Generic; using UnityEngine; using Photon.Pun; using UnityEngine.SceneManagement; public…
1
vote
0 answers

Cannot get PhotonView IsMine value after PhotonNetwork instantiate when other players join

I have a function called Spawn and I put it in Start function. The problem is I can only print out the IsMine value when I create the room. When other plays join the value won't be printed out. And all the code below the instantiate line will not be…
hxngxd
  • 11
  • 2
1
vote
1 answer

After creating a room at the beginning of the match, will the room dissapear after everyone leaves in Photon Unity?

I'm working on a game with Photon in unity. I'm making a system that when the player clicks play, it puts them in a room that fits. If there's no room, it automatically creates a new room, but I'm curious that if everyone leaves the room, will it…
1
vote
2 answers

PUN2: Specify an instanced player gameObject through RPC call

I'm aware you can't pass gameObject references through RPC calls since every client uses it's own unique references for every instanciation. Is there a way to refer to a specific gameObject on ALL clients via an RPC call? Here's a sample of what i'm…
TheWIzard
  • 29
  • 3
1
vote
0 answers

How to make small tournament lobbies with PUN in Unity?

I'm investigating to see if this is possible in PUN. We want to make small 8 people tournaments where they play 1v1 games against eachother. My basic idea was to create a lobby for each tournament and then have them join rooms to play against each…