AppLovinMenuItems.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // MaxMenuItems.cs
  3. // AppLovin MAX Unity Plugin
  4. //
  5. // Created by Santosh Bagadi on 5/27/19.
  6. // Copyright © 2019 AppLovin. All rights reserved.
  7. //
  8. using UnityEditor;
  9. using UnityEngine;
  10. namespace AppLovinMax.Scripts.IntegrationManager.Editor
  11. {
  12. public static class AppLovinMenuItems
  13. {
  14. /**
  15. * The special characters at the end represent a shortcut for this action.
  16. *
  17. * % - ctrl on Windows, cmd on macOS
  18. * # - shift
  19. * & - alt
  20. *
  21. * So, (shift + cmd/ctrl + i) will launch the integration manager
  22. */
  23. [MenuItem("AppLovin/Integration Manager %#i")]
  24. private static void IntegrationManager()
  25. {
  26. ShowIntegrationManager();
  27. }
  28. [MenuItem("AppLovin/Documentation")]
  29. private static void Documentation()
  30. {
  31. Application.OpenURL("https://developers.applovin.com/en/unity/overview/integration");
  32. }
  33. [MenuItem("AppLovin/Contact Us")]
  34. private static void ContactUs()
  35. {
  36. Application.OpenURL("https://www.applovin.com/contact/");
  37. }
  38. [MenuItem("AppLovin/About")]
  39. private static void About()
  40. {
  41. Application.OpenURL("https://www.applovin.com/about/");
  42. }
  43. [MenuItem("Assets/AppLovin Integration Manager")]
  44. private static void AssetsIntegrationManager()
  45. {
  46. ShowIntegrationManager();
  47. }
  48. private static void ShowIntegrationManager()
  49. {
  50. AppLovinIntegrationManagerWindow.ShowManager();
  51. }
  52. }
  53. }