//HOW DO I USE THIS CODE IN UNITY public void GetUserReadOnlyData() { //PlayFabSerAPI request or using PlayFab.ServerModel is not allowed and gives errorcloudscript.png PlayFabServerAPI.GetUserReadOnlyData(new GetUserDataRequest() { PlayFabId = "user PlayFabId here - obtained from any successul LoginResult", }, result => { if(result.Data == null || !result.Data.ContainsKey("Sister")) Debug.Log("No Sister"); else Debug.Log("Sister: "+result.Data["Sister"].Value); }, error => { Debug.Log("Got error getting read-only user data:"); Debug.Log(error.GenerateErrorReport()); }); }
How Do I Request the Value of the ReadOnly Data to Apply it, even if I cant see it(idont want to see it) just apply it. For example, I set the player kill spree to 45 using cloud script, and its a readonly data in the PlayFab Manager...I want to show that 45 to the player...as his skill spree. How do I request that data?