You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: JavaScriptGettingStarted.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ Congratulations, you made your first successful API call!
98
98
Deconstruct the code
99
99
----
100
100
101
-
This optional last section describes each part of Program.cs in detail.
101
+
This optional last section describes each part of this example in detail.
102
102
103
103
The HTML file has a few important lines:
104
104
```HTML
@@ -117,7 +117,8 @@ The other important HTML lines:
117
117
As you can see above, PlayFabGettingStarted.js contains the DoExampleLoginWithCustomID function. These lines bind our js file to our webpage, and invoke the DoExampleLoginWithCustomID function in that script. Everything else is just GUI.
118
118
119
119
* Line by line breakdown for PlayFabGettingStarted.js
* This reads the titleId from the html-input, and sets it to the PlayFab sdk.
121
122
* Every PlayFab developer creates a title in Game Manager. When you publish your game, you must code that titleId into your game. This lets the client know how to access the correct data within PlayFab. For most users, just consider it a mandatory step that makes PlayFab work.
request.TitleId=PlayFab.settings.titleId!=null ? PlayFab.settings.titleId : request.TitleId;if(request.TitleId==null)throw"Must be have PlayFab.settings.titleId set to call this method";
request.TitleId=PlayFab.settings.titleId!=null ? PlayFab.settings.titleId : request.TitleId;if(request.TitleId==null)throw"Must be have PlayFab.settings.titleId set to call this method";
request.TitleId=PlayFab.settings.titleId!=null ? PlayFab.settings.titleId : request.TitleId;if(request.TitleId==null)throw"Must be have PlayFab.settings.titleId set to call this method";
request.TitleId=PlayFab.settings.titleId!=null ? PlayFab.settings.titleId : request.TitleId;if(request.TitleId==null)throw"Must be have PlayFab.settings.titleId set to call this method";
0 commit comments