Last active
August 29, 2015 14:12
-
-
Save yunojy/06edf717516d942fc2f8 to your computer and use it in GitHub Desktop.
Unity Editor Extension - Asset Store Link
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
public class AssetStoreLink1 : EditorWindow { | |
[MenuItem("Window/Asset Store - Web")] | |
static void Open() { | |
System.Diagnostics.Process.Start("https://www.assetstore.unity3d.com/jp/"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
using System; | |
public class AssetStoreLink2 : EditorWindow { | |
[MenuItem("Window/Asset Store - Web")] | |
static void OpenAssetStoreLink() { | |
System.Diagnostics.Process.Start("https://www.assetstore.unity3d.com/jp/"); | |
} | |
[MenuItem("Window/Asset Store - Local .unitypackagea")] | |
static void OpenAssetStoreUnitypackage() { | |
if (Application.platform == RuntimePlatform.WindowsEditor) { | |
System.Diagnostics.Process.Start( | |
"explorer.exe", | |
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\Unity\\Asset Store"); | |
} else | |
if (Application.platform == RuntimePlatform.OSXEditor) { | |
System.Diagnostics.Process.Start( | |
Environment.GetFolderPath(Environment.SpecialFolder.Personal) + "/Library/Unity/Asset Store"); | |
} | |
} | |
} |
Web版で「Unityで開く」を選んだら死ぬほど遅かったので、ローカルのunitypackageファイルがあるフォルダを開くメニューを追加した。
Mac動作確認完了。
ザバイオーネさんありがとうございます。
https://twitter.com/z_zabaglione/status/549940215268130819
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Editorフォルダの下に配置