Upravit

Sdílet prostřednictvím


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:

  1. Open your Unity project.
  2. Download the PlayFab Unity3D SDK Asset Package from the PlayFab GitHub repo.
  3. 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.
  4. To import the PlayFab Unity3D SDK into your project, select Import.

Setting the Title ID without using the editor extensions

To set the title:

  1. In the Unity Editor Project panel select the Assets folder.

  2. Open the Assets > PlayFabSdk > Shared > Public > Resources folder.

  3. Select the PlayFabSettings Asset.

  4. In the Inspector window, set the Title ID.

    PlayFab Inspector Title ID Setting

If you are making a server build, be sure to provide the Developer Secret Key as well.

PlayFab Developer Secret Key Setting

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.