# 환경 지원

> Learn how Analytics works with Unity Gaming Services environments, and how to initialize the SDK for different environments.

환경은 Unity Game Services의 논리적 파티션으로, 프로젝트에 연결된 데이터가 포함되어 있습니다. Analytics에서는 UnityServices를 초기화할 때 `InitializationOptions`에 추가하여 이벤트를 다른 환경에 전송할 수 있습니다.

```cs
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);
   }
}
```

기본 키는 다음과 같습니다.

`com.unity.services.core.environment-name`

자세한 내용은 [환경 페이지](/services/service-environments.md)를 참고하십시오.
