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

equiping player weapons

void Start () { pv = GetComponent<PhotonView>(); viewid = pv.viewID; } void Update () { if (Input.GetKeyDown(KeyCode.Space)) { pv.RPC("equipWeapon", PhotonTargets.All, viewid); }[PunRPC] public...

View Article


Serialize Image

I want to spawn a RawImage over the network.I´ve added this script to a prefab to be spawned:[RequireComponent(typeof(PhotonView))]public class exchange_frame : MonoBehaviour { [SerializeField] public...

View Article


PUN reconnect / player actorID

Hello,Another question about reconnect:From what i understand, the PhotonPlayer ID gets changed on player rejoin and you can do the reconnect in 2 ways: - easy : ReconnectAndRejoin function - harder:...

View Article

Number of Photon Views

Hello,Is there any performance or network implications based on the sheer number of photon views in a scene?For example, in my project each actor has three photon views. Is there any benefit in...

View Article

(PUN) - Synchronization?

Hello everyone. I'm doing some tutorials, all simple for now. But, when creating the room and on the same pc log me in, no one can see changes in the scene.Why?using System.Collections;using...

View Article


Edit a spawn gameobject

Scenario:The master client spawn a texture on the scene.The non-master client edit it.Problem:I see the texture changed only on the non-master client. How to send changes in a way that it´s...

View Article

Photon Realtim frequently disconnects

I have a lot of problems with Photon Cloud in my project, so I'm not sure it's my problem.Photon seems to have a lot of connectivity issues... frequently has problem establishing or maintaining a...

View Article

GameObject Structure needs to be set the photon view in a child...

Hi you,i got a big problem and need support. I programmed and build a very special car with car physics.Meshes and the Visual part is seperated from physics and physics are also seperated to the...

View Article


Rigidbody physics of scene objects

Hello everyone,I am quite doubtful about the best way to do this: I have a spiked boulder with Rigidbody in my scene that can get hit (like a soccer ball or something, but it's big and heavy so it's...

View Article


[PunRPC] causes movement synchronization lag

Hi, I was wondering if I could get any help. I am making a multiplayer fps game. I sync movement using photon view observing photon transform view - with lerping. However, when ever I send out an RPC...

View Article

Image may be NSFW.
Clik here to view.

My game is laggy

Hi I'm making a top down 2d space game. It is a drop in, drop out game. I have five AI controlled ships on the map as well as up to 10 meteors, and as of right now two player controlled players. I...

View Article

Image may be NSFW.
Clik here to view.

PhotonServerSettings "Run in Background"?

startup guide appears outdated, the docs search and forum search can't find it either :P super mysterious setting, indeed!Thanks

View Article

PUN and async games

I've been looking around online for tips on how to make an async, turn based game. I haven't found many recent answers but from what I've read, realtime and playfab was the way to go (about a year ago)...

View Article


RPC with PhotonTargets.Others does not reach others.

Hello.I've recently decided to convert my project from Unity's Networking to Photon. Now I am in the process of reworking everything. For the most part I can see that Photon has a simpler way of...

View Article

NEED HELP WITH MY SCRIPT CAMERA SHAKE

i use unity's FPS controller.i manage to make camera shake on the other players.the idea is. i shoot, my camera shakes. and when enemy is hit, his camera shakes as well. like feeling the impact.so i...

View Article


Photon instantiates too many Players and Scene Objects

Hey, currently i'm working on a networking problem i faced this week. My room has a max. player setting of 2 Players, set through:PhotonNetwork.CreateRoom(null, new RoomOptions() { MaxPlayers = 2 },...

View Article

25+ NPCs that two players can interact with

I'm making a game where a game room will contain 2 players and on the order of 25-40 NPCs that the players can attack. The NPCs have simple behavior with no complex pathfinding requires (just move...

View Article


multiple scenes possible in PUN?

Is it possible to have multiple scenes at the same time in PUN? so when player touches a door in world 1 and gets teleported to World 2.

View Article

How to call a rpm in an object with id?

Hello! I have a photonView ID of a certain gaming object, how do I call it rpc?

View Article

Image may be NSFW.
Clik here to view.

Use time counter Chest

Hi everybody !I'm doing a 2d Game with photon and i want to know if it's possible to check the "real" time.I want to do a 24h counter chest , but i don't want to use the time of the smartphone, it's to...

View Article
Browsing all 8947 articles
Browse latest View live


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