Hello, we are using Unity and we have an Editor windows that we want our designeer to hit a button and upload data to a Title Key.
We're currently doing this in Edit mode rather tan running the game in case that's a thing. When we do the following code:
PlayFabServerAPI.SetTitleData( new PlayFab.ServerModels.SetTitleDataRequest { Key = k.Key, Value = k.Value, }, result => { promise.Resolve("Stats Uploaded"); m_uploadFinished = true; }, error => { throw new Exception("Error upload stats:" + error.ErrorMessage); } );
We get ther error:
The URL for this request is not valid for this title. The correct API endpoint is Blah Blah
I am unsure as to what to do, after some forum and internet posts I got something about the 'Secret Key' is wrong or somethign, but if I check our Playfab Settings it's all valid. Then I read some stuff that indicated CloudScript which I know nothing about.
wondering why this would fail and how to go about pushing the value to the key for the Titledata from the Unity Editor window. If it's cloud script what sort of stuff do we need to look into and learn, the example for hello wrld etc. I couldn't see anything about TitleData
cheers