question

aiden-beltran avatar image
aiden-beltran asked

How to setup login with PlayFab for Unity

Hello I was wondering if there is already made code or a walkthrough for completely inplementing login with playfab in my unity game because I have read all the getting started and login with playfab articles but they just give me variables and classes but I’m rather new to unity and just don’t understand the coding aspect if there is any code I can copy and paste or a tutorial for specifically logging in with playfab that would be great because I’m building the game mainly for windows and don’t have a plan for android or iOS so I don’t need the logon with device ID

Thank you

Authentication
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
JayZuo avatar image
JayZuo answered

If you don't need login with device Id, you can try with LoginWithCustomID like what in the Unity Getting Started. However, please note that you must determine how to generate unique Custom IDs for any other device or platform. Custom ID is an effective alternative for other platforms or devices, but you must generate your Custom IDs with care. Too simple, and you risk hackers stealing the accounts of others. For more info, please see https://api.playfab.com/docs/tutorials/landing-players/best-login.

Besides, LoginWithCustomId is an anonymous login mechanism, you may also need a recoverable login mechanism. There are a lot of options, I'd suggest you check the Authentication section under https://api.playfab.com/docs/tutorials/#landing-players. And the PlayFab Video Tutorials - Authentication Series might also help you.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.