How can I remove a player's prefab on Disconnect() ?
I using webhooks so I need EmptyRoomTTL = 0 and PlayerTTL = -1.I using Disconnect instead LeaveRoom.After player disconnect his prefab is still in room. How can I destroy him for others and for him ?...
View ArticleI'm trying to generate a random key and share it with other players using RPC.
This is the code that i'm currently using, i've tried may different logic but it's no use. Can someone please point out the problem? i think i'm using the RPC wrong.public class GeneratingKey :...
View ArticleMultiplayer movement and camera....again.
Sorry, i know this is a common issue and I have tried countless hours of videos and tutorials on the topics.I am making a multiplayer game with PUN. Synchronized scenes. I have a player (single player)...
View ArticleSync timer and Rejoin
I want to have a countdown timer for every player in the room, when time=0 time up, and game over. for this requirement, I need to sync the timer between each client to prevent timer still have left...
View ArticlePhoton Network Unlimited Players???
Guys, I created a game for Unity, using the PUN, there I found a license 30 days free unlimited players. But to install need to download an SDK, and configure it. I have a doubt:If I do this, will the...
View ArticleError after calling PhotonNetwork.JoinOrCreateRoom()
After I upgraded Unity to 2018.2 I get this error after i call PhotonNetwork.JoinOrCreateRoom():Operation failed: OperationResponse 254: ReturnCode: -2 (Unknown operation code). Parameters: {} Server:...
View ArticleBone Sync
Hi, how are you ?I'm a Brazilian developer, and currently I'm having a minor problem with synchronizing the spinal bone of my player.I did some testing using RPC and did not get much result, in fact I...
View ArticleHow to make PUN object only react to local physics?
I have a multiplayer game that is essentially multiple single player games playing at the same time with player positions being sent between clients as "ghosts". By that I mean they should not interact...
View ArticleLarge Amount of Networked Objects
In the application I'm working on we have a couple of huge hierarchies. Each of the objects in these hierarchies are gameobjects that the players should be able to interact with (move, grab,...) over...
View ArticleGet player gameobjects in a room as soon as you join it.
Creating a new discussion as i'm not able to get my head around with the existing solutions. So I have a camera script that takes into account all the players in the room and positions in such a way...
View ArticleMigrating to IL2CPP Scripting backend
Are the photon Load Balancing and photon networking scripts compatible with IL2CPP scripting backend? Will the scripts work for UWP with NETFX_CORE #define? Or should it be updated to...
View ArticleIm having troubles deleting scene objects. At least I think that is the problem.
Hello,I use a lot of scene objects in my game, and these are the errors/warning I get all the time:Ev Destroy Failed. Could not find PhotonView with InstantiationID XY. Sent by actorNr: XYFailed to...
View ArticleRaise event - event not firing
Hi,I am probably missing something simple - My understanding with Raise Event is that the object raising the event and the one receiving it do not need to have a PhotonView component?I am not 100% that...
View ArticleFootstep sounds
Is there an optimized way of doing this without having to send rpc calls every time a footstep sound is played?
View ArticleFootstep sounds
Is there an optimized way of doing this without having to send rpc calls every time a foot step sound is called?
View ArticleFootstep sounds
Is there an optimized way of doing this without having to send rpc calls every time a foot step sound is called?
View ArticlePhoton and Unity 2018.2.2
Hi, I got this error when I tried to update Unity to 2018.2.2.Updating Assets/Photon Unity Networking/Editor/PhotonNetwork/Views/PhotonAnimatorViewEditor.cs - GUID:...
View ArticleInstantiating an object at the same position in two different devices using...
Hi,I am trying to instantiate a networked object by tapping on detected plane in an app that uses Google AR Core. In the master device, it is instantiating properly but in other clients, it is spawning...
View ArticleIs it possible to have a game server host in a room, that controls everything...
Sorry if the question was unclear, but I'm wondering if it's possible to have server run code that determines things in a game (like scores, respawning etc.) instead of having a master client. To my...
View ArticleSwitching Player Object to a new Prefab During Runtime
Hi All! First time post here. I'm trying to find an efficient way of switching characters during runtime. Each character has different hitboxes/scripts and it'd be somewhat messy and painful to have to...
View Article