Issue with achievem...
 
Notifications
Clear all

Issue with achievements

7 Posts
2 Users
0 Likes
439 Views
(@namarak)
Posts: 4
Active Member
Topic starter
 

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?

This topic was modified 5 years ago by namarak
 
Posted : 28/08/2019 7:20 pm
Topic Tags
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

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

 
Posted : 28/08/2019 7:31 pm
(@namarak)
Posts: 4
Active Member
Topic starter
 

@skaredcreations

Yes, you are right. I want to download it in background and then show it

 
Posted : 28/08/2019 7:37 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

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

 
Posted : 28/08/2019 7:40 pm
(@namarak)
Posts: 4
Active Member
Topic starter
 

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  

 
Posted : 28/08/2019 8:10 pm
(@namarak)
Posts: 4
Active Member
Topic starter
 

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...

 
Posted : 28/08/2019 8:36 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

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

 
Posted : 30/08/2019 10:26 am
Share: