PlayFab
Last updated
Last updated
Create your PlayFab account follow this link.
When you created an PlayFab account, copy your title ID.
In Unity editor, select Window menu -> PlayFab -> Editor Extensions.
Paste your title ID on PlayFab Editor Extensions Window.
Done for setup PlayFab.
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:
In Unity editor, open main menu scene -> select Ads Manager game object -> check the box "Control Ads With PlayFab".
On PlayFab dashboard, select content -> title data -> edit.
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.
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.
Follow below steps to use this feature:
In Unity editor, open main menu scene -> select Save Load Manager game object -> check the box "Is Use Save Cloud".
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:
On PlayFab dashboard, select Players -> Click on search button.
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.
When you clicked on json button, PlayFab will show an json window. You can view player data on this window.