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
2
votes
1 answer

PUN 2 Getting Custom Properties

I've recently taken on the task of custom properties in Photon. I have been able to figure out how to set the custom properties, but not get the custom properties. My hashtable is in my player controller script, while the place where I set (and…
2
votes
1 answer

Unity Ball Synchronization

I am coding a animated ball multiplayer mobile game. The ball animation is quite fast (speed around 25-30) and there are multiple balls. Initially, I tried to the physics are run on masterclient and synced in clients via network. However, the ball…
Ztorum
  • 83
  • 11
2
votes
1 answer

Unity 3d - player is moving constantly after touching a wall

After my player object touches the wall it sometimes starts to move and rotate on it's own. I tried to increase player object weight and it helps, but i don't think it's a good approach as tiny movement never dissapears. Player is rigidbody with box…
Rantiev
  • 2,121
  • 2
  • 32
  • 56
2
votes
1 answer

Problem using PUN2 for a VR multiplayer experience in Unity 3D

I'm trying to create a simple VR demo where two users can connect to a room a manipulate objects on a table. I'm currently following this tutorial. I have followed it step-by-step: Duplicated LocalAvatar and RemoteAvatar prefabs and moved them…
Claus
  • 5,662
  • 10
  • 77
  • 118
2
votes
1 answer

How to reconnect quickly if Photon Network disconnect suddenly or user switched network from wifi to data in Unity3d?

I developed a game like 8 ball pool. I am using photon network for multiplayer feature. The game works fine except in some conditions: Photon network disconnects suddenly. If a user try to switch network for example WiFi to mobile data then Photon…
MASYAM
  • 35
  • 1
  • 5
2
votes
0 answers

Some devices can't join room in Photon PUN. Can't seem to find out why?

I asked this question on Photon's forum, but I wanted to try it here as well. I am really confused with this problem of mine. I have a bingo game, where you can create a room, and others can join that room by entering the room name. What is really…
Kokolo
  • 250
  • 2
  • 12
2
votes
1 answer

Unity PUN RPC call from another class

Trying to call a RPC from another class. But seems like It doesn't work. How can I fix this? Using 3 RPC in same function. So I tried to call function without RPC in a RPC function(This RPC in same class so it works flawlessly) but it doesn't work…
Esamy
  • 35
  • 2
  • 5
2
votes
1 answer

Syncing objects imported at runtime using PUN

In our multiplayer project on Unity, each user imports model at runtime, then joins room, and then configures runtime imported object as networked object. The problem is, the imported model gets destroyed when host leaves. Here is my code snippet: …
2
votes
1 answer

How to sync data when joining to a photon rooms that created before?

I am trying to build a game like http://slither.io/, using Photon Unity networking. The problem is here that I don't know how to get data from a photon room that was created before. for example, we have a room that already has 10 players and a new…
AminSojoudi
  • 1,904
  • 2
  • 18
  • 42
2
votes
1 answer

Photon Voice chat and Speech to text not working together

I am creating multiplayer game using photon. The game also supports photon voice. I do want to support some bot mechanism where user can ask some questions to bot. With predefined command to bot (hey dummybot), it can understand the question and…
chetan rane
  • 533
  • 2
  • 10
  • 25
2
votes
1 answer

Camera follow Instantiated Photon multiplayer player

I have this script attached to my camera: public class CameraFollow : MonoBehaviour { public Transform target; public float smoothSpeed = 0.125f; public Vector3 offset; private void Start() { target = ? } …
Skram
  • 103
  • 1
  • 2
  • 9
2
votes
1 answer

Photon PUN 2+ Unity only working when I run two instances locally

So I 'm creating a game and it's using Photon PUN 2+ I made a free app with 20 CCU and copied the APP ID into unity, I made it automatically connect to rooms if they are any available, and if not create a room. This works when I run two instances…
NightX
  • 47
  • 7
2
votes
0 answers

Eclipse Photon (4.8.0) RCP application plug-ins loading issue

I am updating Eclipse RCP application from Indigo(3.7.0) to Photon(4.8.0), and I am facing issue with loading plug-ins. Eclipse Photon(4.8.0) RCP Application is not able to load Plugins which are copied to the plugin directory unless bundles-info is…
2
votes
1 answer

Photon objects not syncing - Unity

I am working on a multlayer third person game and I am using motion controller for animations and photon for network manager.I ahve a problem: when I connect and join the room the other players don't move on others player screen. They move only on…
2
votes
1 answer

Singleton for MongoDB

Should i use singleton pattern for MongoDB. I'm currently building an Game Server for turnbase game using Photon Engine and MongoDB. public sealed class GSEntities { #region Fields public IMongoClient Client; public IMongoDatabase…