You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

3.5 KiB


Photon Unity Networking (PUN)
This package includes the Photon Unity Networking Api, the Realtime Api (on which PUN is based) and other optional Photon APIs.
Also included: A setup wizard, demo scenes, documentation and Editor extensions.


PUN Free versus PUN+
The content of the PUN Free and PUN+ packages are identical.
We offer a PUN+ package which includes a one-off Photon Cloud Subscription for 100 CCU. See below how this is applied.


UnityScript / JavaScript
We do not support UnityScript with PUN v2 and up.


Help and Documentation
Please read the included chm (or pdf).
Exit Games Forum: https://forum.photonengine.com/categories/unity-networking-plugin-pun
Online documentation: https://doc.photonengine.com/en-us/pun/v2
Unity Forum Thread: https://forum.unity3d.com/threads/photon-unity-networking.101734/


Integration
This package adds an Editor window "PUN Wizard" for connection setup:
Menu -> Window -> Photon Unity Networking (shortcut: ALT+P)
It also adds a commonly used component "PhotonView" to this menu:
Menu -> Component -> Miscellaneous -> PhotonView (shortcut: ALT+V)
When imported into a new, empty project, the "PunStartup" script opens the "demo hub" and setup scenes to build.


Clean PUN Import (no demos)
To get a clean import of PUN, just skip all folders named "Demos".
The folder "UtilityScripts" can be useful for rapid prototyping but the components are optional.


Server
Exit Games Photon can be run on your servers or you can subscribe to the Photon Cloud for managed servers.

The window "Photon Unity Networking" will help you setup a Photon Cloud account.
This service is geared towards room-based games and the server cannot be modified.
Read more about it: https://www.photonengine.com

Alternatively, download the Server SDK and run your own Photon Server.
The SDK has the binaries to run immediately but also includes the source code and projects
for the game logic. You can use that as basis to modify and extend it.
A 100 concurrent user license for the server is provided for free.
Read more about it: https://www.photonengine.com/en-us/OnPremise


PUN+ Subscriptions
Follow these steps when you bought an asset that includes a Photon Cloud subscription:
<span class="broken-code-point">&lt;95&gt;</span> Sign in and open the Dashboard. https://dashboard.photonengine.com
Use an existing Photon Cloud Account or register.
<span class="broken-code-point">&lt;95&gt;</span> Select the Application/Subscription to upgrade and click "Add Coupon / PUN+".
<span class="broken-code-point">&lt;95&gt;</span> Enter your Unity Invoice Number.

<span class="broken-code-point">&lt;95&gt;</span> Find the App ID on: https://dashboard.photonengine.com
<span class="broken-code-point">&lt;95&gt;</span> Find your Unity Invoice Number in the Unity AssetStore:
https://www.assetstore.unity3d.com/en/#!/account/transactions
Or while logged in to the Asset Store, click on your name on the top right.
From the drop-down select the payment method you used in your purchase.
Navigate to your purchase and copy the number following the "#" symbol (excluding the "#" and spaces).


Important Files

Documentation
PhotonNetwork-Documentation.chm (a pdf is also included)
changelog.txt

The server-setup will be saved as file (can be moved into any Resources folder and edited in inspector)
Photon\PhotonUnityNetworking\Resources\PhotonServerSettings.asset

Demos
All demos are in separate folders in Photon\PhotonUnityNetworking\Demos\. Delete this folder in your projects.
Each has a Demo<name>-Scene.