![]() ![]() The next set of code, the OnSignInButtonClicked() function shown in the example provided below, is bound to a Sign In button in the UI in our example. Activate the Google Play Games platform PlayGamesPlatform.DebugLogEnabled = true PlayGamesPlatform.InitializeInstance(config) PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder() RequestEmail() to the PlayGamesClientConfiguration Note: If you also want to capture the player's Google email, be sure to add The following grants profile access to the Google Play Games SDK. Make sure that you don't forget the using statements, so that you can use the Google Play Games SDK. Then, populate your app_id and package_name in the resource definition, as shown below.Copy your Application ID from the Linked apps section of Game Services in the Google Play Developer Console, as shown in the example provided below.You can configure Google Play Games from the toolset that is installed with the Google Play Games SDK. Install the PlayFab Unity SDK (if you do not know how to do this, follow the Unit圓D quickstart guide).Download the Google Play Games SDK (if you haven't done so already) and install it.Set up Google Play Games services following the instructions on this page: Setting Up Google Play Games Services.Build your game APK, and upload it as an Alpha Build.Create an Application - If you haven't done so already, you'll need to create an application in the Google Play Developer Console.There are a few good guides on how to do this, so we aren't going to reinvent the wheel. Familiarity with Login basics and Best Practices.įirst, we'll start by setting up some basic things in Google Play.The PlayFab Unity Editor Extensions & Unity SDK.A PlayFab developer account that has access to a game title in PlayFab.A project built using the Unity game engine.You can also download the sample for this tutorial here. So we'll try to centralize all the steps you need to get this feature working. However, finding all the required information can be tricky. This tutorial illustrates the steps to successfully add Google Play Games sign-in to your PlayFab games, built with the Unity SDK. HowTo: Use Google SignIn (GPG) + PlayFab (Unity) ![]() A new recording is pending, and will be available in the immediate future. Again, we will be providing more examples and documentation as we proceed, but the Web API will always be a good source for full info on how to use our APIs.The audio portion of the following video is currently unavailable. All of our SDKs are wrappers around our Web API calls, so the signature (the call's name and parameters) will be the same regardless of which SDK you're using, and the documentation should always have examples in JSON of the calls and responses. We are indeed working to provide more soon, but one thing to be aware of is that all of our API calls are indeed fully documented in the Web API reference guide. Thanks for the suggestion on the samples. I´m going to try the Angry Bots tutorial, I´ll update the post later.īrendan Vanous said on Tue, 21 July 2015 at 3:24 PM Yeah it will be amazing if the translate their API Calls to C# in the docs, it would be a lot easier. Playfab is pretty cool when you start getting your head around how to use it.īarcelo games said on Tue, 21 July 2015 at 11:25 AM P.S: Have to say, the hard work is rewarding. PlayFabClientAPI.RegisterPlayFabUser(request,OnRegisterResult,OnPlayFabError) īluefox25 said on Tue, 21 July 2015 at 11:17 AM RegisterPlayFabUserRequest request = new RegisterPlayFabUserRequest() I believe this is the one you're after, pulled directly from the Angry Bots demo - CSharp script named 'PlayFabRegisterUser.cs'. (?) As a suggestion for the guys at Playfab, I'd strongly recommend providing good, simple CSharp examples of all their APIs as soon as possible, laid out within the API descriptions on their website.Īs for the API call you mentioned above. Unfortunately they don't seem to cover every API call available. The best way to learn about the API calls, it would seem, is to download the PlayFab Angry Bots Demo and the Playfab Union demos, both of which are written in CSharp and have good examples of code.įrom GitHub - PlayFab Angry Bots download A single account can have up to 10 titles in development mode. A title in development mode can have only up to 100,000 users. Playfab API calls seem to follow a very similar format (as discussed in the post mentioned ). PlayFab is free to try in development mode, which lets you connect a title currently in development without running up the bill. We've come here from Unity too and have been getting to grips with exactly the same issue regarding using Playful API calls in Sharp/Unity.Ĭheck out my post of a few days ago that goes into the subject - HERE Bluefox25 said on Tue, 21 July 2015 at 11:14 AM ![]()
0 Comments
Leave a Reply. |