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

RPC RuntimeAnimatorController

It doesn't work:public RuntimeAnimatorController AXE_ANIMATOR;photonView.RPC ("Animator_Rpc", PhotonTargets.OthersBuffered, AXE_ANIMATOR);[PunRPC]void Animator_Rpc(RuntimeAnimatorController anim){...

View Article


Getting weird OperationResponse errors: 229 -1, 227 -1

Dear community,I am just creating a custom UI Lobby for rooms. Whenever I am trying to establish a connection to a specific region using the below code, I am getting an error in the Unity Console which...

View Article


How to assign specific data for room?

Hallo, I am a newbie in PUN and first of all I want to excuse my english because I am from germany. I have just one little question, which you can read in the title. I already made a list of active...

View Article

Trying to JoinRandomRoom for a LobbyType.SqlLobby, but it doesn't work.

Here's my code, I'm not sure what I'm doing wrong:Trying to join a room.. private void tryJoinRandomRoom(){ PhotonJoinedRoomSignal.AddListener(onJoinedRandomRoom);...

View Article

Best architecture for a moba style game?

Hello. I am using Photon PUN for a project, and after some thought, I am wondering what is the best way to architect a moba style game using PUN.In the last prototype, I applied a PhotonView component...

View Article


HingeJoint Issue

Hello, everyone.I'm developing multiplayer game with Unity3D. I added some vehicles and some of them are using HingeJoint between rigidbodies.But I have an issue now. If I move one rigidbody, other...

View Article

customproperties missing on playerconnected

custom properties are missing from photonplayer OnPhotonPlayerConnected!trying to access a property but it is null! why are properties synced after but not when connection made?

View Article

Hold off on sending OnPhotonPlayerConnected RPCs until after they have loaded...

We often use RPCs in the OnPhotonPlayerConnected function to send players just joining the room info on the players, maps, etc. The problem is that OnPhotonPlayerConnected sends as soon as the player...

View Article


Synchronization question

I have a scene with a large number of runtime instantiated network scene objects on the MC. When a new player enter the room those objects will automatically get instantiate on the client's scene by...

View Article


Image may be NSFW.
Clik here to view.

"Ev Destroy Failed." Could not find PhotonView with instantiationId"

I want to talk about this error - "Ev Destroy Failed." Could not find PhotonView with instantiationId"This error constantly occurs when the network gameplay is active, when the object is deleted after...

View Article

Image may be NSFW.
Clik here to view.

Server-side kick of a client, triggered by another client

Hello there. We want to add some small admin capabilities in our online game, one of which is having the power to kick toxic players and hackers out of the game.I've seen in plenty of places to use...

View Article

This one script controlling the region my game is connected to freezes Unity...

Every time I either edit a script and am on a scene with this script it hangs. Every second time I press play on a scene with this script it hangs. I'm 100% certain its this script. Also, its...

View Article

Displaying current player scores in correct order

hi guys, I'm trying to set up a game over menu that displays the current scores of the players in my Multiplayer game using Photon. so far everything works perfectly with the exception of the order...

View Article


Enemy View

Hello everyone, I have a script that gives rise to 3 enemies (prefabs) in my scene, but every player on the server the enemies are in different places, I wanted to put the enemies as a global enemy,...

View Article

Image may be NSFW.
Clik here to view.

Different Types of MaxPlayers

Hello! I've been using Photon quite a lot recently, and one of the things we'd like to set up is a system for Asynchronous multiplayer with different device types.However, we've run into a problem with...

View Article


New client loads old scene when joining room

Hey guys!I'm making a game where I have a main menu scene where I can join games and etc and other scenes where the game happens, after a match finish the players go back to the room screen in this...

View Article

Proper setup for self-hosted server?

So I am trying to set up a self-hosted server for a project I am doing. Currently I have the settings in the Unity inspector as set to self-hosted, the server IP is set to my local IP and the port is...

View Article


Best way to have spectators that don't impact game performance

Hello!We would like to set up a spectator mode that is completely passive (just listens for player messages) other than the OnPlayerJoined and OnPlayerDisconnected.There is, of course, the ability to...

View Article

Turn based games like chess or card games

I am a user of PUN.I am trying to make a turn based game like chess or card games.I already checked the code of Rock Paper Scissors Demo.PunTurnManager worked as expected in Rock Paper Scissors.In this...

View Article

How often do FPS games exceed free bandwidth with Photon Cloud?

So from what I understand, the bandwidth statistic is the total amount of data that has been transfered for the month. And each plan gives you 3gb per CCU for the month.I've read that a single player...

View Article
Browsing all 8947 articles
Browse latest View live


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