Installing the PlayFab SDK Without Editor Extensions for Unity
You have two options when installing the PlayFab Unity 3D SDK:
Install the PlayFab Unity Editor Extensions Asset Package. Then use Editor Extension to install the PlayFab Unity 3D SDK and configure your Unity Project.
PlayFab Editor Extensions is a stand-alone Unity plug-in that streamlines getting started with PlayFab.
When a supported SDK is installed, additional service menus are available. These menus provide access to SDK configurations. These configuration settings are saved in a combination of places to ensure that the data persists throughout Unity compilations and deployments.
Install the PlayFab Unity 3D SDK directly without using PlayFab Unity Editor Extensions. When you use this installation method, you configure your Unity Project directly by setting properties property values in your code.
This content assumes you that you have a PlayFab developer account and an existing Unity Project.
Download and install the SDK only
To install the SDK without using the PlayFab Unity Editor Extensions:
- Open your Unity project.
- Download the PlayFab Unity3D SDK Asset Package from the PlayFab GitHub repo.
- Navigate to where you downloaded the file, and double-click on the .UnityPackage file to open the Import Unity Package dialog in the Unity Editor.
- To import the PlayFab Unity3D SDK into your project, select Import.
Setting the Title ID without using the editor extensions
To set the title:
In the Unity Editor Project panel select the Assets folder.
Open the Assets > PlayFabSdk > Shared > Public > Resources folder.
Select the PlayFabSettings Asset.
In the Inspector window, set the Title ID.
If you are making a server build, be sure to provide the Developer Secret Key as well.
Otherwise, be sure the secret key is not set when building your game client. For more information about secret keys, see Secret key management.
Note
Refer to Secret key Management to find your secret key, also called a developer key to your PlayFab Title.