Skip to main content

Integration

To be able to use Remote Configs a call has to be made in the game code. Once the config is returned the game can be altered. To see SDK specific examples go here

Below you can see an example of how to integrate Remote Configs on the Unity SDK

//Check if Remote Configs is ready and has been loaded with values
//It should be ready after initialize.
if(GameAnalytics.IsRemoteConfigsReady ())
{
// call Remote Configs
}
//Gets Remote Configs value using specified key.
Example:
string value = GameAnalytics.GetRemoteConfigsValueAsString ("difficulty");
//Gets Remote Config using specified key. If there is no value at specified key the call will return the default value (1)

string value = GameAnalytics.GetRemoteConfigsValueAsString ("difficulty”,1);