Hello, I get all achievements from the server like:
CombuManager.platform.LoadAchievements<Achievement>(AchievementsWasLoad);
and my UI thread blocking untill all achievements downloading.
How can I fix that?
All methods are running in coroutine (CombuManager.DownloadUrl), so it’s not blocking the main thread. Maybe you’re disabling your UI before calling LoadAchiements (or I misunderstood your question).
FRANCESCO CROCETTI @ SKARED CREATIONS
Yes, you are right. I want to download it in background and then show it
So you only need to enable the gameObject of a “Loading...” UI panel right before LoadAchievements and then disable it in your AchievementsWasLoad callback, that’s what I do usually.
FRANCESCO CROCETTI @ SKARED CREATIONS
But I checked in empty scene with one button and textfield, and when I pressed download, I can't edit text in textfield.
Here is the link - https://cloud.mail.ru/public/2zBh/41x6EKac6
Is it possible because a lot of information in description?
Because in description I wrote like this:
{
"Author": 1,
"Description": "У меня тут ящики с мылом не расфасованы. Помоги мне их по полкам раскидать и занести в книгу учета. Получишь от меня 3 куска мыла.",
"Time": "00:15:00",
"RewardsName": 8,
"RewardCount": 3
}
I thougth that with achievements I can create some quests...
Since the data are encrypted/decrypted at runtime then the amount could count but the example data that you wrote is not a lot. I’m currently away for vacation until Monday, will eventually do some tests myself when will be back at home.
FRANCESCO CROCETTI @ SKARED CREATIONS