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

Unique ID

How can i give all the players a unique id like 1,2 or 3 etc.?

View Article


PUN Rotation problem ...

Hey there. So I've recently gotten PUN set up. Since my game includes a player and a killer, I had to make another script for the killer. I ran into a problem, that I think is not that complicated,...

View Article


PhotonNetwork.Destroy(GO, TIME???????)

Hi, it's that, I need the instantiated projectile to disappear after 2 seconds, but It seems not possible. Anyone can help me? Please Only let me PhotonNetwork.Destroy(GO)...

View Article

CurrentRoom.SetCustomProperties not working as expected

I have two players in a multiplayer game that will each have their own list of units and need to be aware of the other players list of units. So I created a system where a unit can be represented by a...

View Article

PUN2 connect failed using self-host

Hello, I have a question about using PUN. Launch server locally with Photon Self-Host I want to connect this using PUN from Unity. When i download the PUN2 asset and connect, Receiving failed....

View Article


Transform synchronization

Hello to everyone, Sorry for my bad english, I am working on car racing game using photon network.In the offline scene i'm changing the wheel of the car and spawn in the online scene everything is fine...

View Article

RPC with params

Hi I'm new to photon and I search web but I didnot find ,which type parameters can I use , int float ok but gameObject,Transform ? they give error but the others ? Would someone show me the list. Soory...

View Article

I am getting disconnected and I don't know why

So, me and my friends are connected to the server, and suddenly my player vanishes, and I receive this message: Cannot send messages when not connected. Either connect to Photon OR use offline mode!...

View Article


"The observed monobehaviour (XXX(Clone)) of this PhotonView does not...

"The observed monobehaviour (XXX(Clone)) of this PhotonView does not implement OnPhotonSerializeView()!" I'm new to networking and I'm stuck with this error. I don't know why I get this error. This is...

View Article


Photon View ID sets to 0 on new object in prefab.

Hi all. I have a big prefab on each scene. There are a lot of different kind of objects every scene needs to work properly. Some kind of scene manager if you like. When I add new object with new Photon...

View Article

Image may be NSFW.
Clik here to view.

PhotonView ID duplicate found

Hi friends, I get an error like the following when the game starts, so what could be the reason.

View Article

DisconnectByClientTimeout ONLY happening with standalone builds. Not editor!

Hi all, We're observing an easily reproducible issue where the master server gets disconnected upon another player joining the room. The funny thing is, this *only* happens with standalone builds. I...

View Article

Collision problem

I'm having a problem with this script. It's supposed to set inRange to true when the killer enters a certain collider. The inRange boolean however, instantly gets set to true when the killer spawns,...

View Article


Multiplayer 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...

View Article

PUN2 with no Internet connection cause errors

Good day, guys. I have the problem. When i use PhotonNetwork.ConnectUsingSettings(); with disabled Internet connection it causes 2 errors which i can't handle (try-catch doesn't work too): Connect() to...

View Article


Sync String Array

I need to sync a string array in Photon PUN2 (Unity), so all the players can have the same value, for example: The master player sets the string order to a random order and the string array value is...

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


[PUN2] PhotonNetwork.ConnectToRegion API need fix!

HI. I'm migrate to PUN2 From PUN Classic. When I call PhotonNetwork.ConnectToRegion API, I can't connect to nameserver. I find this need "PhotonNetwork.NetworkingClient.AppId =...

View Article

I do not understand how to use RPC securely

Hello everyone, I would like to generate an inventory when opening a chest, I would like ONLY the player to see the contents. So for the opening I was thinking of doing a RPC (RpcTarget?) So that even...

View Article

Is it possible to get region information while in offline room?

If I use ConnectToBestCloudServer while in offline mode to retrieve the BestRegionCode will this cause issues? If this doesn't work is there another way to do it? Thanks in advance!

View Article
Browsing all 8947 articles
Browse latest View live


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