Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • General Discussion /
avatar image
Question by dan · May 24, 2017 at 04:09 AM · unity3dphoton

Setting up Playfab + Photon on Unity... which SDKs do I need?

Hi there,

I'm starting work on a turn-based game using PlayFab and Photon in Unity.

Which SDKs do I need to install?
PlayFab, for sure, but do I need any Photon stuff? Like PUN?

Thanks,
Dan

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Brendan · May 24, 2017 at 04:13 AM

Yes, for Photon specifically, you would also need to use their SDK, in addition to the PlayFab Unity SDK. We pre-integrate as much as we can for our Add-on Marketplace partners, but there will always be some cases where we can't pre-integrate everything. Which Photon SDK you use is going to depend upon which of their technologies you want to use, though. What's the goal? Realtime connected players, obviously, but do you need lobbies/rooms, or is this intended to be more peer-to-peer? Do you need server-side authority for the game logic?

Comment

People who like this

0 Show 4 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image dan · May 24, 2017 at 11:36 AM 0
Share

Thanks, Brendan.
We are making a turn-based game, so no need for full on real-time multiplayer. Our aim is to replicate the basic flow and functionality of Game Center multiplayer (which we used on our last app):

Start a room -> invite friends -> update the game state at the end of each turn.

As our app uses PlayMaker extensively, it would be great if the appropriate Photon SDK would be the PUN SDK from the Unity Asset Store as there are already loads of PlayMaker actions for this SDK.

There's a page on the Photon site (which I can't seem to find again) that tells you which SDKs you need based on your deployment. If you select MULTIPLAYER + PLAYFAB + UNITY it says you just need the Playfab Unity SDK... which can't be right.

Thanks once again for your help! :D

avatar image Brendan ♦♦ dan · May 24, 2017 at 04:06 PM 0
Share

Yes, that's incorrect. The PlayFab Unity SDK wraps up all our calls to make using them simple (though they're all Web API calls, so it not strictly speaking necessary), while you would use one of the Photon SDKs for connecting to their service. If you want to use PUN, there's nothing preventing that - you'd simply use the Photon App ID you get directly from them. There's nothing about our SDK which would cause an issue in that case.

avatar image dan Brendan ♦♦ · May 27, 2017 at 12:08 PM 0
Share

Thanks once again!

Quick question...
When setting up PUN, how do I set up the PhotonServerSettings?


I got the IDs from PlayFab, but I just wanted to make sure I have the Hosting info (at the top) correct, because, if I understand correctly, PlayFab uses a special Photon server. Is this right?

setup.jpg (49.3 kB)
Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    Viewing Users' Profile Photo in Photon Room 1 Answer

    I want to use same functions of photon pun in playfab 1 Answer

    webRpcResponse.Parameters are coming up null / RoomCreated not being called 4 Answers

    Operation 227 Failed to create game due to user not found 1 Answer

    Current State of Turn Based Games 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges