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

Ready to play when level loaded?

Hi.So I managed to create and join a room (1vs1 game)When the room is full, both players start to load scene "level1".What is the best way to exchange the status that a level was successfully loaded?I...

View Article


instantiate and mecanim shoot only sometime

I have an animation that have an event on a rpc command that instantiate a fireball, but it only works sometimes do anyone know whats wrong ?

View Article


Feature Request: OnPhotonPlayerNicknameChanged

I've got a lobby/room viewer I'm working on, and one of the things I can't find elsewhere is an event for when a player's nickname is changed. I'm currently using an Update() to check for a changed...

View Article

Suggestion: TTL for expected users -- it just makes sense

Except if you own a Minecraft server or something to reserve your own slot, chances are you want your reserved slots to only last for ~10 seconds if you are doing any "matchmaking" style lobby.The...

View Article

Not able to Instantiate Player Prefab

using UnityEngine; using Photon; using System.Collections; using System.Collections.Generic; using UnityEngine.UI; public class Menu : Photon.PunBehaviour { public Transform namePanel; public Transform...

View Article


Not able to store the script from Prefab to a List

using UnityEngine; using System.Collections; using System.Collections.Generic; using System.Linq; using Photon; using UnityEngine.UI; public class GamePlayManager : Photon.PunBehaviour { public...

View Article

BugReport: CloseConnection() doesn't work sometimes

We're using it to kick people from the room, but sometimes nothing happens.We don't see any errors in the logs, nor can we reproduce it on purpose, but it does happen.Possibly when the target players...

View Article

Set Players Position

Hello !I'm developing card games with max 4 players in a room. I want to set the player position so every players see their position always on bottom center of the screen. Anyone help me please.Thanks !

View Article


Server Availability from Countries - China Servers

Hi, Photon developers!We have developed multiplier regime of our game using PUN. And it is awesome for multiplier games!Our game was released on Steam Platform but we also want to integrate it to China...

View Article


Image may be NSFW.
Clik here to view.

Errors when importing to existing project

I get these errors when I import photon free multiplayer:I have no idea what to do, when importing to empty project it works great. Using unity 2017.1.1f1 and Photon Unity Networking Free 1.87

View Article

How can I tell when a room is removed from the AsyncRandomLobby?

Hi there.I am trying to create automatching for a turn-based game using AsyncRandomLobby.How do I tell when a game is removed from the lobby?Currently the room closes when players leave, sending the...

View Article

Proper way to handle procedural levels?

I'm working on a 2 player coop game that uses procedural generation for the levels and I don't think I'm using PUN properly-As of right now I have the masterClient run a function that generates the...

View Article

Rom name generation

Hi,I want to get a custom naming system which will have two characteristics: Length of room name is 4 characters It has only Upper or lower case characters I thought to do it by specifying a function...

View Article


Stuck in PeerCreated state

Hello all,We're working on a multiplatform (web/ios/android) multiplayer game which has been working fine until a few weeks now. Once it get disconnected due to internet issue or staying in background...

View Article

Instantiate several photon views with hierarchy

I am working on multiplayer VR game and have following hierarchy of objects:Body---Left Hand---Right Hand--- (Other object like Head and Legs)Left Hand and Right Hand are instances of same prefab,...

View Article


PhotonNetwork.Destroy(gameobject) with PhotonNetwork.autoCleanUpPlayerObjects...

Hello !I want to destroy the gameobject of player that leave manually on the next round of the game, so i set PhotonNetwork.autoCleanUpPlayerObjects to false and give a bool for player that is leaving...

View Article

PhotonNetwork.GetRoomList() always returns empty

void Awake() { PhotonNetwork.autoJoinLobby = true; PhotonNetwork.automaticallySyncScene = true; PhotonNetwork.lobby = TypedLobby.Default; PhotonNetwork.logLevel = Loglevel;...

View Article


Is there a dummy Photon Player?

Hello,I've written up a multiplayer game, however there is also an AI mode.Important parts of my code make use of the CustomProperties object on the PhotonPlayer. It would be very handy if I could...

View Article

Destroy player from network after rejoining room

When I create or join a room, everything seems to be okay. But when I disconnect from photon and create or join another room, I have 2 players with mine photonview. The previous player with mine...

View Article

how to change to Pun+?

Hi!I was developing my first game with PUN(free).i bought PUN+(100CCU) in the unity asset store just a minute before. I want to apply PUN+ to my game. How can i change the mode? Just download and...

View Article
Browsing all 8947 articles
Browse latest View live


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