Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Browsing all 8947 articles
Browse latest View live

Best way to reconnect to Master Server after timeout?

Hi I would like to know what the best way is to reconnect to the Master Server when the client times out. Currently I start a coroutine at .OnDisconnected() that calls .Reconnect() every 2 seconds....

View Article


PUN2 OnRoomListUpdate() not called while in room

I am caching the room list in my client using the same code as in the Asteroids demo. The problem I am having is that I do not get an update if the rooms change while already in a room. For example:...

View Article


Serialization of 2+ arrays of a custom type

Hello devs, This is a very specific question about how PhotonStream.SendNext() serializes stuff. I've got an IPunObservable behaviour which needs to send 2 arrays of MyCustomClass (stored in m_Arr1 and...

View Article

what happens to previously transferred ownership PhotonView when new owner...

Here is a situation GameObject gets instantiated by player 1 ownership of gameobject gets transferred to player 2 ownership then gets transferred to player 3 Player 3 disconnects My questions are Who...

View Article

Does photon crash when disconnected mid-game??

Happened to me while mid-game, app crashed, on mobile, any idea why?

View Article


Errors in Demo projects Unity 2018..2.13

Hi, I would like to try using PUN. I downloaded and imported the PUN 2 asset from the store and it has created a lot of errors. Does anyone know which files need fixing so I dont have to debug this....

View Article

OnPlayerPropertiesUpdate not called?

I am just beginning with PUN (porting a project using UNET). Everything has worked great so far (well not far yet). But for the life of me I can't figure out when I set Player custom property the...

View Article

PUN Trying to join room based on CustomRoomProperties [Solved]

Hi, I'm trying to add a value to CustomRoomProperties while creating a room and use that value as a filter while other clients are trying to join a room but it doesn't seem to work. Here is part where...

View Article


On premise (self-hosted server) timeouts

Hello, Let me start by saying I'm a newbie to networking using Photon, and I've never used Unity's UNET either. I have some experience using Unity's low-level TCP and UDP networking. I am using Photon...

View Article


Child rotation will not update

I have set up Photon multiplayer and the characters transform, rotation, and animations are synced. The weapon however which is attached to the right hand will not sync its rotation. I think I have...

View Article

PUN 2

PUN 2 As of now, PUN 2 is in the Asset Store. There are two packages (free and plus) which contain the same content, so everyone can just get and use the Free package. Upgrading PUN 1.xy Plus to PUN 2...

View Article

Child rotation wont sync

Hello all! I am trying to sync a weapons rotation which is a child component. I rotate the weapon using this: private void LateUpdate() { //weapon movement if (PV.IsMine) { clavicleLooking =...

View Article

Pun2 work only in local

Hi guys My photon only works locally then 1 day, if my friends and me use the unity editor to play, we can play together, but if we used each a build it does not work... we have 0 error so .. this is...

View Article


PUN2: Proper usage of OnOwnershipTransfered

Hello there, I was just hoping for some clarification on what is standard practice for dealing with client ownership. From the PUN 1 documentation and video tutorials I have watched, it seems that...

View Article

Scene object grab and throw Sync

Howdy, I would need help, how should I solve grabbing object and throwing sync, Right now im uing Pun2- and RPC function when throw, ( if ball player collide with ball then use ball.transform .parent--...

View Article


Instantiation

Hello guys, First of all, I want to state that I am a noob in terms of Unity, C# and Networking. That being said I try to manage with what I can find on forums, tutorials etc. I want to Instantiate a...

View Article

How to instantiate a prefab on other player only?

I want to Instantiate a prefab on the other player but I can't find documentation anywhere. Any hints on how to do it? I used var newEnemy = PhotonNetwork.Instantiate(enemy1, start.transform.position,...

View Article


Stop searching for a room

So I was setting up my matchmaking services but i ran into a little snag. What I want: When the searching for match message pops up after clicking join game(or quick play) i want it to show the...

View Article

PUN2 RPC Calls Unity 2018.2, PUN2free

For some reason when I'm trying to use the RPC Tool it won't locate the PunRPC that i have tagged, was the PunRPC tag changed in some way? I'm unable to find anything on PunRPC in the migration notes....

View Article

Unity, event runs twice, can't figure out why.

Hello guys, i'm making a Real-Time multiplayer combat game, but i'm stuck with a thing: When i am in the room, i disconnect from the room and i reconnect back again, my event, OnLevelFinishedLoading...

View Article
Browsing all 8947 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>