Environment support

Environments are logical partitions for Unity Game Services that contain data associated with your project. With Analytics, you can send events to different Environments by adding to the InitializationOptions when initializing the UnityServices.

using UnityEngine;
using Unity.Services.Core;
using Unity.Services.Analytics;
using System.Collections.Generic;
using Unity.Services.Core.Environments;				
 
class InitWithEnvironment : MonoBehaviour {

   async void Awake()
   {
       var options = new InitializationOptions();
       options.SetEnvironmentName("dev");
       await UnityServices.InitializeAsync(options);
   }
}

The underlying key is:

com.unity.services.core.environment-name

See the Environments page for more details.