2023-05-07 18:43:11 -04:00
|
|
|
#if SERVICES_SDK_CORE_ENABLED
|
2023-03-28 13:24:16 -04:00
|
|
|
using UnityEditor;
|
|
|
|
|
|
|
|
namespace UnityEngine.Advertisements.Editor
|
|
|
|
{
|
|
|
|
static class AdsServiceTopMenu
|
|
|
|
{
|
|
|
|
const int k_ConfigureMenuPriority = 100;
|
|
|
|
const string k_ServiceMenuRoot = "Services/Ads/";
|
|
|
|
|
|
|
|
[MenuItem(k_ServiceMenuRoot + "Configure", priority = k_ConfigureMenuPriority)]
|
|
|
|
static void ShowProjectSettings()
|
|
|
|
{
|
|
|
|
EditorGameServiceAnalyticsSender.SendTopMenuConfigureEvent();
|
|
|
|
var path = AdsSettingsProvider.GetSettingsPath();
|
|
|
|
SettingsService.OpenProjectSettings(path);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|