Version: 2021.3
언어: 한국어

AnalyticsSettings.OnRequireInBuildHandler

매뉴얼로 전환

설명

Dispatches whenever a platform build starts. Use this event to enable Analytics in a platform build.

using UnityEditor;

[InitializeOnLoad] internal class SomeNewServiceRequiresAnalyticsDeviceStats { static SomeNewServiceRequiresAnalyticsDeviceStats() { UnityEditor.Analytics.AnalyticsSettings.OnRequireInBuildHandler += () => { return true; }; } }