Hello,
I’ve been studying the Remote Config Documentation (Unity Remote Config | Remote Config | 3.3.2) and I have a few questions. I can split these questions in smaller threads if requested
userAttributes vs appAttributes
I understand you can use this structs to add information to be used in the Game Overrides rules.
In the documentation, it says:
But then, they are used like this:
So score is used in the app structure and in the user structure.
Taking into account that any value can be used in both structures, what is the point of having two structures? What is the difference, semantically speaking?
Unity Attributes
There are several attributes that you can use in your rules (unity.country, unity.cpu,
unity.appVersion, etc.) You don’t need to send these attributes, right? They are sent automatically by the remote config service
RemoteConfigService.Instance.GetConfig
In the documentation, you can find
var settings = RemoteConfigService.Instance.GetConfig("settings");
var specialConfigType = RemoteConfigService.Instance.GetConfig("specialConfigType");
What does it mean different types of config? I understand that settings are the actual settings we’re fetching, but what else could it be? Is there any other type of config (“specialConfigType”)?
Options.SetEnvironmentName vs RemoteConfigService.Instance.SetEnvironmentID
I’ve found that you can set the environment in two ways, one with the environment name and other with the environment id. Are they equivalent? Or do I need to set both? Could it be possible (although incorrect by design), to set an environment for analytics and other environment for remote settings? Or the second call is going to override the first one?
var options = new InitializationOptions()
.SetEnvironmentName("environmentName");
await UnityServices.InitializeAsync(options);
RemoteConfigService.Instance.SetEnvironmentID("environmentId"); //equivalent?
SchemaId
I’ve seen you can define a filter in the fetch call. The filter definition is
public struct filterAttributes {
// Optionally declare variables for attributes to filter on any of following parameters:
public string[] key;
public string[] type;
public string[] schemaId;
}
I understand that key is to filter by key names and type is to filter by key types. But, what are we filtering with schemaId?
Thank you