/// <summary> /// List all contents of the title and get statistics such as size /// </summary> public static void GetContentList(GetContentListRequest request, Action <GetContentListResult> resultCallback, Action <PlayFabError> errorCallback, object customData = null) { if (PlayFabSettings.DeveloperSecretKey == null) { throw new Exception("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); } PlayFabHttp.MakeApiCall("/Admin/GetContentList", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData); }
IEnumerator enumerator(float time) { Dictionary <string, string> keyValues = new Dictionary <string, string>(); GetContentListRequest getContentListRequest = new GetContentListRequest { Prefix = "" }; PlayFabAdminAPI.GetContentList(getContentListRequest, result => { contentInfos = result.Contents; }, error => { Debug.LogError(error.GenerateErrorReport()); }, keyValues); yield return(new WaitForSeconds(time)); for (int i = 0; i < contentInfos.Count; i++) { Content.GetChild(i + 1).gameObject.SetActive(true); Content.GetChild(i + 1).GetChild(0).GetComponent <Text>().text = contentInfos[i].Key; } }