Hey there, what ever i do i can’t seems to get any configuration what so ever.
(In editor)
2019.4.9f1
Packge: 1.0.9
The admin dashboard panel…
There were 2 environments created regardless of what i did.
Release and Development, + i added Default, since it seemed like a magical keyword.
So these are my Environments (image 1)
My config looks like this, with 3 string values (image 2) (all environments have the same 3 values in a config)
My code:
void Awake()
{
ConfigManager.FetchCompleted += (x) =>
{
print($"fetching remote CFG ... {x.status} ... {x.requestOrigin}");
print(string.Join(", ", ConfigManager.appConfig.GetKeys()));
print(ConfigManager.appConfig.origin);
print(ConfigManager.appConfig.assignmentID);
serverURL = ConfigManager.appConfig.GetString("ServerIP");
showroomId = ConfigManager.appConfig.GetString("ShowroomID");
print($"{serverURL} => {showroomId}");
}
}
The output:
> fetching remote CFG ... Success ... Remote
> [empty string]
> Default
> [empty string]
> =>
this happens twice, for Cache and Remote.
All the other forum posts seems like the service should be working.
SECOND problem is that i seem to not be able to write:
ConfigManager.SetEnvironmentID(...)
the method is simply not there.
And so, i tried updating the package to all the other versions. I still couldn’t use the SetEnvironmentID method. I got a dependency conflict with Json.NET. But that shouldn’t stop the update, should it not? Since the PackageManager UI showed X version as expected.
Any help is much predicated.