How can I Store a list of strings or integers in Playfab for eg in unity List<strings> in playfab
How can I Store a list of strings or integers in Playfab for eg in unity List<strings> in playfab
As your problem describes, you can save the list as a JSON array. In this regard, I write an example as follows:
List<string> TestList = new List<string>() {"Ford","BMW","Benz"}; public void TestStoreList() { PlayFabClientAPI.UpdateUserData(new UpdateUserDataRequest { Data = new Dictionary<string, string>() { {"Cars",PlayFab.PluginManager.GetPlugin<ISerializerPlugin>(PluginContract.PlayFab_Serializer).SerializeObject(TestList) } }, Permission = UserDataPermission.Private },OnSuccessStoreList => {},OnError=> {}); }
After saving successfully, as shown in the figure:
4 People are following this question.