Pun 2 - Early Access [May 2018]

TobiasTobias admin
Hello Everyone,

We are updating our early access package of the upcoming PUN version (will be referred as PUN 2).
This features major internal changes, API changes, performance and optimization improvements but keeps the same design pattern you know and expect from Photon Unity Networking (PhotonViews, RPC, Cloud, etc).

Download it here:


Few things to know:

- This version is NOT READY FOR PRODUCTION, use it at your own risk.
- Unity 5.3.7p4 is the minimal version

Known Issues:

- The Demo Hub is not loading the "Realtime Demo". It does run when loaded directly.

New Features:

- New, cleaner folder structure. A "Photon" folder wraps up everything and there is a folder per Photon product or API.
- New Demos.
- Improved Namespace to avoid clash with other assets.
- LoadBalancing (LB) api has been revamped for a better separation between PUN and LB
- The PUN API changed in numerous place
- Performance and optimization is improved with less caching of data and better memory usage to avoid unnecessary allocations where possible.
- Explicit registration for PUN callbacks is now necessary, although automated when using 'PunBehaviour' ( watch out when overriding OnEnable() and OnDisable() you must call the base or registration will not occur
- Demos now using the Unity UI system instead of the deprecated one which had a very design pattern for coding.
Future Features:
- Documentation overall pass to cover all changes and new features
- Completed Demos
- Network Prefab will no longer be required as a Resource but will need explicit registration
- More optimizations and performances improvements

We welcome your feedback on this :)
Simply post in this thread.


  • Hi @S_Oliver,

    both PUN and PUN 2 support async scene loading. For PUN we added this feature with the currently latest version 1.90. In PUN 2 it is available in the version above.

    From the changelog:

    Added: PhotonNetwork.LoadLevelAsync() with LoadSceneMode.single mode support only (LoadSceneMode.additive async loading requires keeping track of all loadings)
  • How easy will it be to upgrade your existing project with PUN to PUN2?
    When would PUN2 be ready for general use?
  • Hi @Icezman,

    How easy will it be to upgrade your existing project with PUN to PUN2?

    This will require some effort but it won't take forever. You basically would have to remove the content from PUN and insert the content of PUN 2 instead, because it has a new folder structure. Afterwards you might have to replace some API calls. This however shouldn't be an insolvable task.

    When would PUN2 be ready for general use?

    We don't have an ETA.
  • Hey there. :)

    Small error in Unity 2018.1

    On PhotonEditor.cs:500, Apparently UNITY_5_3_AND_NEWER does not cover unity 2018_1 for some weird reason. Adding UNITY_2017_1_OR_NEWER fixes it though. :)
  • Hi @Vallcrist,

    Thank you for choosing Photon and for reporting this.
    Actually, it's a typo, it should be UNITY_5_3_OR_NEWER instead of UNITY_5_3_AND_NEWER.
  • Ah, I see.

    Also another small thing, PUN2 does not have Photon Voice yet? Any ETA on having it working there?
  • Also another small thing, PUN2 does not have Photon Voice yet? Any ETA on having it working there?
    We will release Voice 2 as well which will be compatible with PUN2. Hopefully at the same time as PUN2.
  • Hi,

    New version available, the new discussion is here:




This discussion has been closed.