Skip to content

Instantly share code, notes, and snippets.

@yunojy
Last active Aug 29, 2015
Embed
What would you like to do?
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

Editorフォルダの下に配置

@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