ATMenuItems.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //菜单栏
  2. using UnityEditor;
  3. using UnityEngine;
  4. // using DownloadManager;
  5. namespace AnyThink.Scripts.IntegrationManager.Editor
  6. {
  7. public class AnyThinkMenuItems : MonoBehaviour
  8. {
  9. /**
  10. * The special characters at the end represent a shortcut for this action.
  11. *
  12. * % - ctrl on Windows, cmd on macOS
  13. * # - shift
  14. * & - alt
  15. *
  16. * So, (shift + cmd/ctrl + t) will launch the integration manager
  17. */
  18. [MenuItem("AnyThink/SDK Manager %#t")]
  19. private static void IntegrationManager()
  20. {
  21. ATIntegrationManagerWindow.ShowManager();
  22. }
  23. [MenuItem("AnyThink/Documentation")]
  24. public static void Documentation()
  25. {
  26. // if (ATConfig.isSelectedChina()) {
  27. // Application.OpenURL("https://newdocs.toponad.com/docs/lgfbO4");
  28. // } else {
  29. // Application.OpenURL("https://docs.toponad.com/#/en-us/unity/unity_doc/unity_access_doc_new?id=_3-integration");
  30. // }
  31. Application.OpenURL("https://newdocs.toponad.com/docs/lgfbO4");
  32. }
  33. }
  34. }