This document is about: PUN 2
SWITCH TO

PUN Classic (v1)、PUN 2 和 Bolt 處於維護模式。 PUN 2 將支援 Unity 2019 至 2022,但不會添加新功能。 當然,您所有的 PUN & Bolt 專案可以用已知性能繼續運行使用。 對於任何即將開始或新的專案:請切換到 Photon Fusion 或 Quantum。

Overview

Asteroids

The Asteroids demo is the result of porting Unity's NetworkMeteoroid demo from uNet to PUN 2. In this demo 1 to 8 players can compete in destroying asteroids. The player with the most points wins the game.

If you want to find out more about the porting process from uNet to PUN, you can take a look at the demo's documentation page.

Demo Location: /Photon/PhotonUnityNetworking/Demos/DemoAsteroids/

Screenshot of the Asteroids demo
Screenshot of the Asteroids demo

Procedural

The Procedural demo shows how procedurally generated worlds can be handled when using the Photon Cloud. Therefore the demo's focus is on both generating the world and synchronizing modifications applied to it across multiple clients. You can read more about it on the demo's documentation page.

Demo Location: /Photon/PhotonUnityNetworking/Demos/DemoProcedural/

Screenshot of the Procedural demo
Screenshot of the Procedural demo

Slot Racer

In the Slot Racer demo, 1 to 4 players can drive with their slotcars on the track. Instead of using 'classical' position synchronization, the demos uses the driven distance to synchronize the players' slotcars on the track.

Demo Location: /Photon/PhotonUnityNetworking/Demos/DemoSlotRacer/

Screenshot of the Slot Racer demo
Screenshot of the Slot Racer demo

PUN Cockpit

The Cockpit demo provides a visualized approach of region pinging, the connection process, room creation and in room management and is perfectly embedded in the Slot Racer demo. To make use of it, you have to add both the PunCockpit-Scene and the SlotCar-Scene to the build settings and launch the Slot Racer demo.

Demo Location: /Photon/PhotonUnityNetworking/Demos/PunCockpit/

Screenshot of the Cockpit demo
Screenshot of the Cockpit demo

LoadBalancing

The LoadBalancing demo shows how to directly use the Realtime API.

Demo Location: /Photon/PhotonRealtime/Demos/DemoLoadBalancing/

Chat

Taken over from PUN Classic the Chat demo shows a simple chat room by using the Chat API.

Demo Location: /Photon/PhotonChat/Demos/DemoChat/

Back to top