Files
Commercialization.topon/AnyThinkPlugin/Script/IntegrationManager/Editor/ATMenuItems.cs
2024-03-07 15:23:32 +08:00

39 lines
1.2 KiB
C#

//菜单栏
using UnityEditor;
using UnityEngine;
// using DownloadManager;
namespace AnyThink.Scripts.IntegrationManager.Editor
{
public class AnyThinkMenuItems : MonoBehaviour
{
#if AnyThinkSDKEditor
/**
* The special characters at the end represent a shortcut for this action.
*
* % - ctrl on Windows, cmd on macOS
* # - shift
* & - alt
*
* So, (shift + cmd/ctrl + t) will launch the integration manager
*/
[MenuItem("AnyThink/SDK Manager %#t")]
private static void IntegrationManager()
{
ATIntegrationManagerWindow.ShowManager();
}
[MenuItem("AnyThink/Documentation")]
public static void Documentation()
{
// 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");
// }
Application.OpenURL("https://newdocs.toponad.com/docs/lgfbO4");
}
#endif
}
}