Part 2 - Using Game Manager
Before we start coding, we need to understand Game Manager and setup some things.Prerequisites
- Part 1 - Environment Setup
- A PlayFab developer account. It’s free to sign up for one.
Step 1 - Create your Studio
After a successful sign-in (or sign up), you’ll now be able to create your brand new Game Studio! To do so, as soon as you log into Game Manager, you see a New Studio button. Once clicked, you’ll be prompted to name your Studio. You may name it however you like. For this example, we named it “New Game Studio.”
Step 2 - Create your Title
To create a new Title, follow these steps:- On your My Studios and Titles in Game Manager, look for three dots on the right of the Upgrade account button (if you already have a plan bought and linked to your logged in account, you’ll only see the three dots) and select it.
- Once selected, this will open a menu with different options, choose New title.

- Input your title’s information, such as the name, Website URL, and Game Logo in case you have any of those already. If you don’t, no worries, you can always add them later.

- Select Create title
- Once created, your Title will now show up under your previously created Studio. It shows up in a ‘card’ in which you’ll see your Title’s logo, name, plan, and ID, and a button shown as a gear ⚙️ icon that takes you to some other Title settings.

Step 3 - Get your Title ID and your Secret Key
Now that you have both your Studio and your Title created, it’s time to get your Title ID and your Developer Secret Key. Both of which will be used when you start coding and will serve as the linking points in your development environment that point back to the specific Title upon which authentication and transactions are executed. The easiest way to get the Title ID is just by looking at your Title in your Studio screen. In the card corresponding to your Title. On the bottom right of that card, you’ll see the “ID” tag followed by a 5-digit alphanumeric code, this is your ID.
- Sign in into Game Manager.
- Selecting your title card in the Studio screen. This will open the title’s overview page.
- On the top left corner, next to the Title’s name, select the gear icon ⚙️.
- Choose the Title settings option.

- Select the Secret Keys navbar option towards the top of the screen.

- You’ll see that we have automatically generated one for you called Default Key. This is your Developer Secret Key, which we’ll use in the next part of this tutorial to set up the coding environment settings.
Step 4 - Create your first item
Given that what we’re building is a crafting game, we’ll need to create our items in Game Manager so that they’re available for players as soon as they start (and to you to start coding).Game Manager
- Sign in into Game Manager.
- Go to My Studios and Titles page and select your game title to display the dashboard.
- From the left navigation menu, select Engage > Economy.

- On the Economy page, select the Items tab and then select New Item. You can also find other tabs such as Currency, UGC, Bundles, and Stores.

- After selecting it, you’ll be redirected to a form in which you’ll be prompted to add the details you want your new item to have. On this screen, you’ll also be able to set some of the item’s properties such as Prices, Files, Images, and Platforms the item will be available on.

- Once you have added all the required information and any additional information you wanted to add to your item, towards the bottom of the New Item screen, you’ll get two distinct options to continue: 1. Save as draft: This creates a draft item, it will not be available in your game (not even through search, purchase, and so forth.) 2. Save and publish: This will save and publish your item to your game right away, meaning it’s searchable, active, and purchasable.

API
To create an item using PlayFab’s API, you must use the CreateDraftItem call, under catalog/createDraftitem. This works similarly as the other examples of creating items, with the slight difference that by default the item created will end up being a draft item unless specified otherwise. There’s a Publish boolean in which, if true, the item is published directly without being saved as a draft. The following JSON is an example of a CreateDraftItem request body. Not all the fields are required, so feel free to trim that JSON to your needs/likings. For more information, see CreateDraftItem.For more information on Items, Inventories, and other Economy functions and terms, see our Economy V2 Documentation.
Step 5 - Use Catalog to view and edit your items
If you go back to Engage > Economy in your left navbar (like you did in Step 4), you’ll see the same list of options/tabs mentioned above. The page defaults to the Items tab in which you’ll then get another option to filter the items by Published or by Draft, and it shows all your items in the selected category.


Step 6 - (Tip) Make an item free for purchase
You may think that the way to make an item free, is to not put a price on it. Currently, this is not the case, if you create an item without the price, we will consider it as unpurchaseable.


Step 7 - Add a FriendlyId
To add a FriendlyId, you must go to Economy > Items and select the desired item. Once selected, enable Edit mode so you can make changes to the item. In the following screenshot, you can see the FriendlyId field (highlighted in red). This is where you can put a friendlier name or ID for your item and it will be instantly linked to that particular item.
