AnalyticsSettings.OnRequireInBuildHandler

Cambiar al Manual

Descripción

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; }; } }