發表文章

目前顯示的是 3月, 2017的文章

[Unity]Unity Editor Extensions – Menu Items

圖片
參考來源:  https://unity3d.com/learn/tutorials/topics/interface-essentials/unity-editor-extensions-menu-items Adding Menu Items 1 2 3 4 5 6 7 public class MenuItems : MonoBehaviour {     [MenuItem("TopTools/Find")]     private static void doSomething()     {         Debug.Log("Find");     } } 1 2 3 4 5 6 7 public class MenuItems : MonoBehaviour {     [MenuItem("Window/Find")]     private static void doSomething()     {         Debug.Log("Find");     } } Hotkeys 以下是支援的熱鍵(也可以互相合併): % – CTRL on Windows / CMD on OSX # – Shift & – Alt LEFT/RIGHT/UP/DOWN – Arrow keys F1…F2 – F keys HOME, END, PGUP, PGDN 1 2 3 4 5 6 7 8 9 10 11 12 13 14 // Add a new menu item with hotkey CTRL-SHIFT-A     [MenuItem("Tools/Find %#a")]     private static void doSomething3() { }     // Add a new menu item

[Unity]Asset Store下載的Package位置

Windows 8,C:\Users\USER NAME\AppData\Roaming\Unity\Asset Store Mac OS X,~/Library/Unity/Asset Store