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

How it works Photon View?

I'm having trouble getting the other player to see changes in the game.In the tutorial (DemoBoxes) only the fact that Photon View is in the object makes it work. What's wrong with mine?

View Article


How to check if the value of CustomProperties equals something?

HelloI have been cracking my head today against the possibly the simplest thing ever in Photon but I just seem to be unable to get the idea.Situation:Two players in a room. They choose a character and...

View Article


Image may be NSFW.
Clik here to view.

OnPhotonSerializeView no Work

My function apparently is not working. I searched the forum and nothing helped.My photon view looks like this:I already moved Observe option.I have already made changes and test to change the observer...

View Article

PhotonNetwork.LoadLevel not working in the updated PUN!

Hello. I have been using PUN Free Version for about 8 months now, and right now, just before the Game Release, I upgraded to 95$(100CCU) plan. After I bought it in Asset Store, and reimported it in my...

View Article

Why does OnTriggerEnter calls on client and master

Whenever I pass over a trigger with the code below it's called on both client and master. private void OnTriggerEnter(Collider other) { PlayerTracker.Instance.ModifyHealth(PhotonNetwork.player, -10); }...

View Article


UNet with PUN

hi everyone, I am fresh new here and I know my question is so stupid but I will ask it anyway.I have already finished my game using the UNet HLAPI but am not happy with the relay servers of unity so I...

View Article

Unable to get expectedCustomRoomProperties to work in Random Matchmaking.

I am attempting to filter the rooms a player can find in random matchmaking by using JoinRandomRoom and passing in a hashtable of properties by which to filter the available rooms. When I run two...

View Article

calculate Msg/s per room

Hi everyone, my question is does PhotonTransformView and PhotonRigidbodyView messages count when calculating the msg/s per room?

View Article


Invalid Cast Exception Error : Right After Photon.Instantiate ?

Hi Fellows, I am getting error when Photon.Instantiate called. It is okay when i assing Photon.Instantiate group parameter as 0.But if i do set group parameter differenly. I am getting...

View Article


Best way to detect user disconnects

Hi,we are working on PVP game on iOS. User can turn off his wifi. Problem is that it took almost 10 seconds for client to realize that it was disconnected and getting OnConnectionFailed:...

View Article

how to check how many clients are connected to photon server?

hi all, im developing a unity game using photon server(self hosted) i want to view in the scene how many clients connected to the server.thank you.

View Article

How to sync text in unity photon server?

hi all, i need help in developing a realtime photon server (selfhosted )using unity3d i want to sync text object in photon server.example "score","text"...etcthankyou.

View Article

Cannot check if all players are ready with CustomProperties

Hey folks,I am trying to set up my game in such a way that once both players choose their race, then the game starts.What I do is I first declare hashtable, bool and int locally: public bool chosenRace...

View Article


OnLeftRoom is not working

public void leaveroom() { PhotonNetwork.LeaveRoom(); Debug.Log("Leave room"); } public void OnLeftRoom() { Debug.Log("Left room"); Application.LoadLevel("room menu"); }Leave room is getting called but...

View Article

PhotonNetwork.RaiseEvent() help

I am familiar with the PunRPC process (how to use them) as well as Events and delegates in unity. I do not understand how to take a function for an object in unity(local) and send that to a...

View Article


physics problem

condition1. make scene object2. push scene object as master client and other client3. using photonTransforview, PhotonTransformPhysicsresultmaster client push object well but other client has...

View Article

Add New Game Object To Existing Photon View

Hello,Is it possible to add a game object (as a child) to an existing Photon View game object?Something like this:MyPUNManager.csvar player = PhotonNetwork.Instantiate (playerAvatar.name,...

View Article


Spawn / Sync existing game object (Player)?

Hello,My current game is using vrtk (VR ToolKit). I have this CameraRig game object, which is the player character. For some reasons, this CameraRig need to be on scene first instead of using...

View Article

Add variables to an Event

using a delegate and an event like in this tutorial https://unity3d.com/learn/tutorials/topics/scripting/eventshow would I do this same thing but add parameters to the delegate?I've tried doing it the...

View Article

How to handle Phone Calls ( game play interruption ) ?

hello,- Any best practices on how to handle phone calls ( or any game play interruptions ) in a player vs player network game ?- does photon player exit the room when he receive a phone call ?Thanks.

View Article
Browsing all 8947 articles
Browse latest View live


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