Files
Commercialization.topon/AnyThinkPlugin/Script/IntegrationManager/Editor/ATMenuItems.cs

39 lines
1.2 KiB
C#
Raw Normal View History

2023-09-04 16:57:46 +08:00
//菜单栏
using UnityEditor;
using UnityEngine;
// using DownloadManager;
namespace AnyThink.Scripts.IntegrationManager.Editor
{
public class AnyThinkMenuItems : MonoBehaviour
{
2024-03-12 02:21:41 +08:00
#if AnyThinkSDKEditor
2023-09-04 16:57:46 +08:00
/**
2024-03-12 02:17:14 +08:00
* The special characters at the end represent a shortcut for this action.
2024-06-05 15:09:03 +08:00
*
2024-03-12 02:17:14 +08:00
* % - ctrl on Windows, cmd on macOS
* # - shift
* & - alt
2024-06-05 15:09:03 +08:00
*
2024-03-12 02:17:14 +08:00
* So, (shift + cmd/ctrl + t) will launch the integration manager
*/
2024-06-05 15:09:03 +08:00
[MenuItem("AnyThink/SDK Manager %#t")]
private static void IntegrationManager()
2023-09-04 16:57:46 +08:00
{
2024-06-05 15:09:03 +08:00
ATIntegrationManagerWindow.ShowManager();
2023-09-04 16:57:46 +08:00
}
2024-06-05 15:09:03 +08:00
[MenuItem("AnyThink/Documentation")]
public static void Documentation()
2023-09-04 16:57:46 +08:00
{
2024-03-07 15:23:32 +08:00
// if (ATConfig.isSelectedChina()) {
// Application.OpenURL("https://newdocs.toponad.com/docs/lgfbO4");
// } else {
// Application.OpenURL("https://docs.toponad.com/#/en-us/unity/unity_doc/unity_access_doc_new?id=_3-integration");
// }
2024-06-05 15:09:03 +08:00
Application.OpenURL("https://newdocs.toponad.com/docs/lgfbO4");
2023-09-04 16:57:46 +08:00
}
2024-03-12 02:21:41 +08:00
#endif
2024-03-07 15:23:32 +08:00
}
2023-09-04 16:57:46 +08:00
}