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

Image may be NSFW.
Clik here to view.

Instantiate Objects by pressing the trigger button of controller

Hello guys, I am trying to instantiate Objects by pressing the trigger Button of the controller. But nothing seems to work. I tried with RPC and PhotonNetwork.Instantiate. With RPC I am not sure how to...

View Article


Syncing non physics movement

I am moving my player with translate with high speed and using photon transform view to sync it. but over the network it is not in sync . can i know any better way to perfectly sync the players...

View Article


Best way of avoiding dead rooms

HeyallOur game lets user's create rooms where they can invite their friends and such. The way we handle rooms and all that is through webhooks.I.e.When a player opens a room our web-server receives a...

View Article

Why cannot I destroy the player?

The code: public void SetHit(float damage){ photonView.RPC("SetHitRPC",PhotonTargets.All,damage); } [PunRPC] void SetHitRPC(float damage,PhotonMessageInfo info){ if(this.photonView.isMine){...

View Article

Setting PhotonView.group increases message rate

Hi,I am trying to implement mmo sample. My game has players and mobs (scene objects). If I understood correctly, interest groups work like this: player sets interest groupsthen he sets his...

View Article


Get GameObject on OnMouseOver using photon

I am trying something like this but is not working public void OnMouseOver() { if (Input.GetMouseButtonDown(0)) { Debug.Log("click"); Debug.Log(PhotonNetwork.player.ID); Ray ray =...

View Article

Activate and disactivate object

Hi, i have a really hard time figuring how to do this simple action of showing the activation and disactivation a gameobject such as my character's weapon that is a child of my character.I searched it...

View Article

Random disconnect after "x" seconds with 2 PLAYERS ONLY

Hi everyone,When I log into a server with some user in there (in my case a friend or a second build) - sometime after a few seconds that me or the other user is running around the server, it loses the...

View Article


PUN broken in Unity 2018.2.0b8

Upgraded to Unity 2018.2.0b8 and now I get this and nothing compiles:Assets/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs(675,46): error CS0619: `UnityEngine.RPC' is obsolete: `The...

View Article


How to handle a NPC properly?

Hi,I spawn one NPC (PhotonNetwork.InstantiateSceneObject()) and one player at the same time by a game manager. When the player is killed by the NPC, he is respawned with another NPC (now too NPCs) and...

View Article

ConnectUsingSettings don't seprate players with diffrent version value

Hi,I used different version value for PhotonNetwork.ConnectUsingSettings(version);but players join each other with defferent version values.I've used self hosted.Thanks

View Article

Where I can call PhotonNetwork.autoCleanUpPlayerObjects?

I need that when a player disconnects, his player object continues in the room, I have found this property but I do not know where to call it, I tried to put it when I created the room...

View Article

Culling prevents scene syncronization on new players

Hi to all. I'm making multiplayer mobile game in Unity. For optimization I decided to use culling bout only for sending, clients must receive everything. I set up everything and customized...

View Article


A game with the specified id already exist

Hey guys! I reaching out for some help, having a problem with this: As it's always 4 players in a game and it works fine 95% of the times and we get a normal PhotonID. But sometimes when 4 players are...

View Article

LoadLevel or LoadLevelAsync

I'm trying to find the best way to trigger scene loading for our multiplayer VR game. The master client will initiate the game from the menu scene and all players should then move to the game scene. Is...

View Article


How expensive is Sychronize Scale of PhotonTransformView? Does it matter?

Hello everyone,I need this to synchronize the Scale and I wonder how big is the impact to activate the Synchronize Scale Checkbox from the Photon Transform View?does it impact the performance as much...

View Article

Matchmaking

Hi all,I have a problem with creating match. I'm working on online board game and I want to create system for playing with other online players. Player can choose someone from list and invite him to...

View Article


Image may be NSFW.
Clik here to view.

Display player Name

I want to differentiate between players by letting them write their name in an Input Field and display the name over their head in the game. I am using this script as a component of the Input field:...

View Article

How to control NPC?

I don't know if there's any example project available to learn, but I have no idea of how to control NPCs. I can spawn them, but it seems that two AI bots do the same in game that is when one shoots...

View Article

how to Update Room Property for lobby?

//inside the lobby scene and lobby scriptforeach (var roomInfo in PhotonNetwork.GetRoomList()) { Debug.Log((string)roomInfo.CustomProperties["creator"]); } //in the game scene and game script...

View Article
Browsing all 8947 articles
Browse latest View live


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