기술 자료

지원

Analytics

Analytics

환경 지원

Learn how Analytics works with Unity Gaming Services environments, and how to initialize the SDK for different environments.
읽는 시간 1분최근 업데이트: 5일 전

환경은 Unity Game Services의 논리적 파티션으로, 프로젝트에 연결된 데이터가 포함되어 있습니다. Analytics에서는 UnityServices를 초기화할 때
InitializationOptions
에 추가하여 이벤트를 다른 환경에 전송할 수 있습니다.
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
자세한 내용은 환경 페이지를 참고하십시오.

환경 지원 • Analytics • Unity Docs