A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate
in the Unity community.
Separate names with a comma.
Discussion in 'Unity Remote Config' started by RedTShirtGaming, May 3, 2022.
Using remote config, is there a way of changing key values through a C# script?
I'm checking on this for you, and will follow up.
We do have a REST API but no C# admin API and there are no current plans. https://services.docs.unity.com/remote-config/v1 . You could always call a REST API from C# however.
Thank you. I'll try and add this to my project and see what it does. Are you able to suggest any videos that explain what to do?
A Google search for "rest api from c# video" should do the trick!
Found some videos! Thank you for your help
That isn't technically true, all the necessary tools to achieve it are there, someone just didn't bother to write any comments to any of the methods in the RemoteConfigWindowController.cs, RemoteConfigDataStore.cs, RemoteConfigWebApiClient.cs or in the RemoteConfig documentation, in any sense of the word.
I figured out how to use it most of the way down, got the service to accept my custom JArray's formatting now, but the next hurdle is something that is pure greek to me, upon POSTing my custom keyvalue with RemoteConfigWebApiClient.PostConfig(params) i get this as a response:
Failed to push remote config: HTTP/1.1 400 Bad Request
Supplied config type already exists.
Would greatly appreciate if you could elucidate what the issue is with that.
Same here. I am facing this problem even using cURL. I have no idea why it's working only within their system and nowhere else.