2D Racing Multiplayer Game Template
  • 🌟Welcome
  • Getting Started
    • ⚡Import The Template
    • đŸ•šī¸Build Project
    • 📂Project Structure
  • Customization
    • 🏁Add New Race Map ( Classic Mode )
    • đŸšĻAdd New Race Map ( Multiplayer Mode )
    • đŸŽī¸Add New Car
    • đŸĒ™Set Cars Price
    • 💾Save System
    • 💰Monetization ( Admob + Unity IAP )
      • 🔷Ads Manager
      • 🔷Reward Free Coins
    • đŸ’ģPlayFab
    • 📃GDPR
    • đŸŽĩAudio System
    • ✨Lighting Effect
  • 🌠UI Animation
  • đŸĨˆSet Race Lap
  • ⌛Set Countdown Return To Room Lobby
  • đŸ’ļReward System ( Multiplayer Mode )
  • Other Informations
    • 📓Changelogs
    • â˜Žī¸Contact
Powered by GitBook
On this page
  • Setup PlayFab
  • Control Showing Ads With PlayFab
  • Save Cloud With PlayFab
  1. Customization

PlayFab

PreviousReward Free CoinsNextGDPR

Last updated 3 months ago

Setup PlayFab

You can try to check Unity Playfab at this guide.

  1. Create your PlayFab account follow this link.

  2. When you created an PlayFab account, copy your title ID.

  3. In Unity editor, select Window menu -> PlayFab -> Editor Extensions.

  4. Paste your title ID on PlayFab Editor Extensions Window.

  5. Done for setup PlayFab.

To use this feature, you need to complete steps setup PlayFab above.

By using title data on PlayFab dashboard, you can control amount of ads are shown in the game. You can follow steps below to use this feature:

  1. In Unity editor, open main menu scene -> select Ads Manager game object -> check the box "Control Ads With PlayFab".

  2. On PlayFab dashboard, select content -> title data -> edit.

  3. Add two new keys numEndGameClassicToShowAd and numExitLobbyToShowAd . Then, set the value you want for both keys.

    Note: The name keys need to be same on PlayFab dashboard and at Ads Manager script. You can set other key name you like on PlayFab dashboard, but remember to change key name at The Ads Manager script same as key name on PlayFab dashboard well.

  4. Done, you can use this feature now.

Example how this feature work:

  • If you set numEndGameClassicToShowAd = 2 . In classic mode, whenever players complete or fail a level, it counts as an attempt. After two attempts, ads will be displayed on either the win screen or the fail screen.

  • If you set numExitLobbyToShowAd = 3 . In lobby multiplayer mode, whenever players click on exit lobby button or click on leave room button, it counts as an attempt. After three attempts, ads will be displayed.

To use this feature, you need to complete steps setup PlayFab above.

Follow below steps to use this feature:

  1. In Unity editor, open main menu scene -> select Save Load Manager game object -> check the box "Is Use Save Cloud".

  2. Done, we can use this feature now.

How this feature work:

The GameData class will be saved like json and this json will be sent to PlayFab server. We can view the GameData class on PlayFab dashboard by steps:

  1. On PlayFab dashboard, select Players -> Click on search button.

  2. When click on search button, PlayFab will show list players, you can try to select any players you like. In the player, select Player Data (Title) -> click on json button.

  3. When you clicked on json button, PlayFab will show an json window. You can view player data on this window.

The Save Cloud feature operates using PlayFab's anonymous login method. This simple login method is used for backing up player data on their device and tracking which mobile platforms players use to play the game. You can refer to this document for more details about this login method.

Control Showing Ads With PlayFab

Save Cloud With PlayFab

đŸ’ģ
🔷
🔷
🔷
Ads Manager Script.