Quick Look at Unity Multiplayer with PUN2

What is involved in a multiplayer game?

  • Game Loop — process input and make changes per frame
  • Position things — as the game progresses things move around the screen
  • Animate things — many games have animations, the animation controllers have to ensure the correct sequence of animations are played
  • Game loop detects the trigger being pulled
  • Animate — The arm might moves slightly and the gun kicks up a little
  • A bullet is positioned at the muzzle of the gun

Photon PUN v2

PUN Tutorial

Photon Views

Photon Views
  • Discrete — value is sent 10 times a second
  • Continuous — every frame (forms a queued buffer of details)

The Observer

Photon View

Extending Components with IPunObservable

Implementing MonoBehaviourPunCallbacks and IPunObservable
Custom data


Unity, VR, Enterprise and .Net Developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

A Few Good Shortcuts to Keep in Mind for VS code

Why open APIs are more successful than closed-loop systems?

Set Up GitLab CI for Rails Applications

Unit Testing vs Integration Testing

“A million-to-one shot, Doc, million-to-one”

Docker Compose MySQL Multiple Database

My Journey with DLithe Bootcamp(.NET Full Stack Week 3(Feb7- Feb12)

Python Data Structures

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Paul Marsh

Paul Marsh

Unity, VR, Enterprise and .Net Developer

More from Medium

Galaxy Shooter — Player Movement

How to Add Custom Post Processing Files to Individual Cameras in Cinemachine

Damage VFX using Animated Sprites in Unity: Part 2

VR in Unity: Pt 03- VR Dev Series 03