{"id":23163145,"url":"https://github.com/playfab/unitysdk","last_synced_at":"2026-01-16T02:58:25.381Z","repository":{"id":18708068,"uuid":"21918635","full_name":"PlayFab/UnitySDK","owner":"PlayFab","description":"Unity C# SDKs for PlayFab","archived":false,"fork":false,"pushed_at":"2025-04-01T20:45:26.000Z","size":517556,"stargazers_count":373,"open_issues_count":10,"forks_count":108,"subscribers_count":50,"default_branch":"master","last_synced_at":"2025-04-03T05:09:17.896Z","etag":null,"topics":["android","csharp","iphone","playfab","unity-3d"],"latest_commit_sha":null,"homepage":"https://learn.microsoft.com/gaming/playfab/sdks/unity3d/","language":"C#","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PlayFab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-07-16T21:18:12.000Z","updated_at":"2025-04-01T20:45:25.000Z","dependencies_parsed_at":"2023-02-14T13:30:30.239Z","dependency_job_id":"e89a0c4d-0f82-45da-addc-5ce0f41704ed","html_url":"https://github.com/PlayFab/UnitySDK","commit_stats":null,"previous_names":[],"tags_count":229,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PlayFab%2FUnitySDK","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PlayFab%2FUnitySDK/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PlayFab%2FUnitySDK/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PlayFab%2FUnitySDK/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PlayFab","download_url":"https://codeload.github.com/PlayFab/UnitySDK/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248489291,"owners_count":21112542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","csharp","iphone","playfab","unity-3d"],"created_at":"2024-12-18T00:16:30.069Z","updated_at":"2025-04-11T22:29:42.184Z","avatar_url":"https://github.com/PlayFab.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UnitySDK README\n\nThe PlayFab Unity SDK consists of two packages—PlayFab [UnitySDK](https://aka.ms/PlayFabUnitySdk) and the optional [PlayFab Unity Editor Extensions](https://aka.ms/PlayFabUnityEdEx).\n\nThe Editor Extensions package provides a simple user interface to help you download, install, configure, upgrade the PlayFab SDK. It is the simpler way to get set up right away. However, it requires you to include additional files into your project.\n\nIf you are an advanced user, consider installing the PlayFab SDK directly by extracting the package and configuring the scriptable-objects using the Unity inspector window. Detailed instructions on how to get started are provided in the section below.\n\n## 1. Overview:\n\nThis document describes the process of configuring and building the PlayFab Unity package and distribution package. The document also contains instructions for developers to start using the package in their Unity games.\n\n## 2. Prerequisites:\n\nThis document assumes familiarity with the Unity game engine, MonoDevelop Unity .NET programming environment, and Mac OS X operating system environment.\n\n* Users should also be familiar with the topics covered in our [getting started guide](https://learn.microsoft.com/gaming/playfab/what-is-playfab).\n\n## 3. Installing or Upgrading the PlayFab UnitySdk\n\n### Editor Extensions UI Installation\n\n1. Download the [Editor Extensions package](https://aka.ms/PlayFabUnityEdEx)\n2. Open and run your Unity project\n3. From the Unity editor, go to **Assets** \u003e **Import Package** \u003e **Custom Package** and then select the downloaded PlayFabEditorExtensions package. For latest instructions on how to add a custom package, go to Unity documentation site.\n4. A new window pops up displaying all the files that would be imported into your project. Select **Import** to add all of the files.\nAfter a successful installation, you will see the PlayFab panel with the Create account or login UI in the Unity editor.\n\n### Editor Extensions SDK Installation/Update\n\n1. Log in using the Editor Extensions panel\n2. If your SDK is missing or out-of-date, you'll see an orange install/update button\n\n### Manual Installation\n\nYou can install the SDK directly by downloading the latest [SDK Asset Package](https://aka.ms/PlayFabUnitySdk) directly.\n\nDetailed Manual Instructions:\n* Download [UnitySDK.unitypackage](https://aka.ms/PlayFabUnitySdk) to a safe location.\n* [Only When updating]: Delete your {ProjectLocation}/assets/PlayFab*/ directories.\n * (Very old SDKs) You may also need to delete PlayFab specific files in your {ProjectLocation}/assets/Plugins/ directory.\n * Failing to do this step may cause compiler errors and/or unexpected runtime errors\n* Unpack the .unitypackage file into your project.\n\nAdvanced users can copy the contents of https://github.com/PlayFab/UnitySDK/tree/master/ExampleTestProject/Assets into their existing project.\n\n#### PlayFab Configuration:\nYou must configure the SDK with your unique TitleId.  This is done via the PlayFabSharedSettings ScriptableObject or the PlayFab Editor Extensions panel.\n\nIn your Unity Project tab, navigate to: assets/PlayFabSDK/Shared/Public/Resources and select the PlayFabSharedSettings ScriptableObject.\n\nAdvanced users can still add this line of code anywhere in their game setup:\n\n```C#\nPlayFabSettings.TitleId = \"144\";\n```\n\n#### HTTP Request Configuration:\n\nFrom the EdEx panel (Settings -\u003e Project), or the PlayFabSharedSettings scriptable object, you can set the web request implementaiton used when making HTTPS REST calls to PlayFab.\n\nUnityWebRequest should be your default choice for any new projects. All other options exist for compatibility or customization. It uses the UnityWebRequest built-in engine class and should be appropriate for most scenarios on most platforms and modern engine versions.\n\nThe HttpWebRequest option uses the C# HttpRequest library. This option is multi-threaded, and most of the requests will not execute on the main thread. Additionally, advanced users can use PlayFabSettings to customize their request timeouts and other HttpRequest settings (not documented).\n\nThe UnityWww option is only available on older versions of the engine (pre 2018.2). It uses the Unity WWW class to make web requests.\n\nThe CustomHttp option exists for those that wish to implement their own ITransportPlugin. If you need to go down this route, you can follow the existing code in either PlayFabUnityHttp.cs or PlayFabWebRequest.cs. When you need to register your custom plugin, call PluginManager.SetPlugin using a PluginContract of PlayFab_Transport.\n\n#### To make server API calls:\n\nThe best way to do this is enable it from the PlayFab Editor Extensions Panel (PlayFab Panel -\u003e Settings -\u003e API).\n\nNon EdEx panel users: This guide will direct you how to find the \"Scripting Define Symbols\": https://docs.unity3d.com/Manual/PlatformDependentCompilation.html, under the heading \"Platform Custom Defines\".\n\nThe Unity setting you need to modify is:\nEdit -\u003e Projet Settings -\u003e Player -\u003e \"PC \u0026 Mac \u0026 Linux Standalone\" -\u003e \"Platform Custom Defines\"\nAdd ENABLE_PLAYFABSERVER_API\n\nYou can also choose other platforms in place of \"PC \u0026 Mac \u0026 Linux Standalone\", but this is not recommended.\n\nYou can now set \"Developer Secret Key\" in assets/PlayFabSDK/Shared/Public/Resources/PlayFabSharedSettings.asset\n\nRefer to [Secret key Management](https://docs.microsoft.com/gaming/playfab/gamemanager/secret-key-management) to find your secret key, also called a developer key to your PlayFab Title.\n\n\nAdvanced users can still set their secret key anywhere in their game setup:\n\n```C#\n    PlayFabSettings.DeveloperSecretKey = \"Find this in your dashboard/settings https://developer.playfab.com/title/properties/{your title Id}\"; //your Developer Secret goes here.\n```\n\n## 4. Usage Instructions:\n\nYou are now ready to begin making API calls using the PlayFabClientAPI class. Check out the online [documentation](https://learn.microsoft.com/rest/api/playfab/client/?view=playfab-rest) for a complete list of available APIs.\n\n##### New Users:\n\n* Check out our Tutorials, Samples and more [here](https://learn.microsoft.com/gaming/playfab/resources/playfab-samples)\n\n## 5. Troubleshooting:\n\nCASE: If you run into conflicts when upgrading SDKs, remove all files from previous versions and perform a fresh import of our unitypackage or SDK files. \n\n#### Contact Us\nWe love to hear from our developer community! \nDo you have ideas on how we can make our products and services better? \n\nOur Developer Success Team can assist with answering any questions as well as process any feedback you have about PlayFab services.\n\n[Forums, Support and Knowledge Base](https://community.playfab.com/index.html)\n\n## 6. Copyright and Licensing Information:\n\n  Apache License -- \n  Version 2.0, January 2004\n  http://www.apache.org/licenses/\n\n  Full details available within the LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplayfab%2Funitysdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplayfab%2Funitysdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplayfab%2Funitysdk/lists"}