Hello,
Is there any way to fetch again the custom data of a player that has already logged in? We're using a couple of custom data fields to, say, block players from MP games. We're doing this by directly modifying the field on the server. However, the field doesn't update on the player's client unless they log out and back in. And if, for some reason, their client calls .Update after our modification, our modification gets overwritten.
I haven't been able to find any function to poll custom data in the Combu documentation. I understand that the custom data is probably meant to be manipulated this way, but any help would be appreciated.
You can use the member method Load of a User object:
CombuManager.localUser.Load ((bool success) => { //...customData has been reloaded here (if success) });
Another way is to set the property pingIntervalSeconds in the inspector of CombuManager to activate an auto-ping call every X seconds that will reload the data of local authenticated user (not all User objects, only CombuManager.localUser) from server (powerful but requires good design of your client logic code and increase the workload of your web server).
FRANCESCO CROCETTI @ SKARED CREATIONS