Oleg.ragozin
started a topic on Tue, 01 September 2015 at 1:13 AM
Hello
I have an issue in a code below:
public class FileUploader : MonoBehaviour {
....
private void GetContentListURL() {
Debug.Log ("Start creating file list");
PlayFabAdminAPI.GetContentListCallback callback = delegate (GetContentListResult result) {
Text[] textValue = GameObject.Find ("TextFileList").GetComponentsInChildren<Text> ();
textValue[1].text = result.Contents.ToString();
Debug.Log(string.Format("Finish creating file list"));
};
PlayFabAdminAPI.GetContentList (new GetContentListRequest {Prefix = ""}, callback, OnPlayFabError);
}
The callback have never been called :(
The code works done in PlayFabHTTP.cs
WWW www = new WWW(url, bData, headers);
yield return www;
if(!String.IsNullOrEmpty(www.error))
{
Debug.LogError(www.error);
callback(null, www.error);
}
else
{
string response = www.text;
callback(response, null);
}
I have received the right responce in a "string response = www.text" but callback never been called in a next string