photon for unity
TRANSCRIPT
Photon For Unity
Introduction to Photon• Photon is a Socket Server & Framework
- Target : Realtime, multiplayer, cross-platform games.
• 16k+ registered developers
• Transparent pricing, empower Indies.
Photon Realtime
Photon Realtime
Photon Realtime
Photon Realtime
Photon Turnbased
Photon Turnbased
Photon PUN
Photon Chat
Photon Chat
Photon Server
UN vs PUN• Unity Networking (UN) is very convenient, simple and powerful.
• It is the entry point for most Indies to start Networking experiments.
• BUT it has several major draw backs
UN need Master Server to be hosted.
P2P leads to NAT/punch-through issues (especially in mobile network.
Dropped host kill the game and so frustrate players
UN vs PUN
Photon PUN
Photon PUNCCU: Concurrent users.
20 CCU means 20 concurrent users is 20 users on the game at the same time.
PUN hands-on
• Register and get app id.
• Download Photon PUN on Asset Store.
PUN hands-on• Lobby
- Properties can be synced.
• Rooms
- Exchange data in realtime.
- Set and get properties of Players and Rooms.
Photon PUN• Connect US, EU or Asia
Photon• Get from the Lobby into a Room quickly
Photon• SerializeView
- Add Prefab.
- Add PhotonView (script)
- Add Script for Update
Photon