PUN 2 - Early Access RC1 [ July 2018]

Hi 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:

https://www.dropbox.com/s/vw5acrzs078ofi1/Pun2_beta_3.unitypackage?dl=1

Few things to know:

- This version is NOT READY FOR PRODUCTION, use it at your own risk. It's pretty much final, but based on feedback and what we find, we might still have to make breaking changes or fix last minute issues.
- Unity 5.3.7p4 is the minimal version

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.
- More optimizations and performances improvements

We welcome your feedback on this, as always!

Simply post in this thread.

Comments

  • Hello.

    Building for android throws an error at LoadBalancingPeer.cs:79.
    Switching from PingNativeDynamic to PingMono seems to fix it, but I'm not sure thats the right fix. Things seem to keep working though. :)
  • Hi,

    thanks for the feedback, we'll check.

    Bye,

    Jean
  • S_Oliver
    S_Oliver ✭✭✭
    Hey, now where Pun 2 is available on the Asset Store do we get a List with all Changes ? maybe more like name and class changes so we can replace old api calls with new ?

    I really like the new Demos ! Awsome , greate Job with Pun 2 !
  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @S_Oliver,

    There is this page and we will probably update it to add any missing notes.
  • S_Oliver
    S_Oliver ✭✭✭
    @JohnTube awesome, thanks!
  • Tobias
    Tobias admin
    edited August 2018
    PUN 2
    As of now, PUN 2 is in the Asset Store. There are two packages (free and plus) which contain the same content, so everyone can just get and use the Free package. Upgrading PUN 1.xy Free to PUN 2 can be done with PUN 2 Free! Get the Plus package only, if you use PUN 2 Free already and want to get a 100 CCU subscription for a one time fee.

    What's new?! PUN 2 has a new structure and comes in just one "root" folder. We cleaned up the naming of many classes, fields and interfaces and there is a new callback system. We created new demos and are in the process of re-writing the documentation (note the v2 in the link). Currently the API reference is only in the package (see the PDF or CHM files). Updating existing projects will be quite some work. Here are the migration notes we took.

    Existing subscriptions (e.g. of a previously purchased PUN Plus) can be used with PUN 2. There is no upgrade fee or such! If you got an existing 100 CCU subscription, you can use that. Existing AppIDs can be used in PUN 2 (and vice versa).

    Why a second package then?! PUN 2 wraps up a lot of internal refactoring and includes multiple breaking changes for existing PUN projects. As we don't want to break existing projects, PUN 2 got separate packages.

    Should I update? Bigger or almost complete projects should probably stick with PUN "Classic". We will keep that package around and update it but we probably won't add more features. Projects starting recently or soon, should use PUN 2.

    Something is broken, right?! We tested PUN 2 in early access and with our demos but of course, there can be bugs. When reporting issues in PUN 2, please make sure to tell us you're using PUN 2 already. Reply here or mail to: developer@photonengine.com. Or post in this forum!

    Hope you all enjoy!
This discussion has been closed.