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

Fast bytes exchange between 2 players

$
0
0
Hello,

I just started to learn PUN. I started with documentation, but I find it extremely confusing.
I would like to ask if it is possible to use PUN for the following scenario:
I would like to join two players in one room. Each player should have ability to send explicitly bytes array to another player. In essence, I just need:
- some method "Send" which can be called in each "Update" method (60 times per second) to send bytes array to remote player
- some method "Receive" (or event "OnReceived") which can be used to receive bytes array from remote player (60 times per second)

Is there a way to achieve this using PUN? In the documentation I found only "Photon View" script which observes objects and somehow send changes. I need more control over messages exchange process.

best regards,
Radik

Viewing all articles
Browse latest Browse all 8947

Trending Articles



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