Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@yunojy
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yunojy/06edf717516d942fc2f8 to your computer and use it in GitHub Desktop.
Save yunojy/06edf717516d942fc2f8 to your computer and use it in GitHub Desktop.
Unity Editor Extension - Asset Store Link
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/");
}
}
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");
}
}
}
@yunojy
Copy link
Author

yunojy commented Dec 30, 2014

@yunojy
Copy link
Author

yunojy commented Dec 30, 2014

Web版で「Unityで開く」を選んだら死ぬほど遅かったので、ローカルのunitypackageファイルがあるフォルダを開くメニューを追加した。

@yunojy
Copy link
Author

yunojy commented Dec 30, 2014

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