Firstborn/Library/PackageCache/com.unity.ads@3.7.5/Editor/DevX/Settings/AdsServiceTopMenu.cs
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

21 lines
632 B
C#

#if SERVICES_SDK_CORE_ENABLED && ENABLE_EDITOR_GAME_SERVICES
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