Wanzyee Studio

A favorite asset shortcut list for quick operations. More...

Inherits EditorWindow, and IHasCustomMenu.

Public Member Functions

void AddItemsToMenu (GenericMenu menu)
 Add the window context menu items. More...
 

Static Public Member Functions

static void Open (ShortcutList list)
 Open a window to show the specified ShortcutList. More...
 

Public Attributes

string search = ""
 The search filter pattern in the search bar. More...
 
ShortcutList list
 The list asset to show items. More...
 

Detailed Description

A favorite asset shortcut list for quick operations.

Support multiple windows with custom tab title, and save the settings in a ShortcutList asset. Easy to personalize which lists to keep opening by saving layout at the top-right of the editor. This won't ping the asset when clicking by default, since it's annoying if lots of folders expand.

Generally, pin your frequently used assets:

  1. Daily working scenes to open.
  2. Common prefab library to drag into a scene.
  3. WIP assets, e.g., script or psd, to open and edit.

Furthermore, build your own toolbox with executable assets and dock it anywhere, for example:

  1. File *.url to open a web page, e.g., the Unity Scripting Reference.
  2. File *.lnk to open another application, e.g., Photoshop or SourceTree.
  3. MenuExecutor to execute an editor menu item, e.g., "File/Save Project".
  4. CodeExecutor to run a simple code snippet, e.g., "Time.timeScale = 0.5f;" for testing.
  5. And so on, depend on your demand and imagination.

Custom Hotkey, efficient and Unity's lost feature, especially powerful in toolbox mode:

  1. Globally matches items of all opened Shortcut windows to perform.
  2. The act is just the same as clicking the item in the window.
  3. Performed only when key up, to avoid repeat opening while pressing.
  4. This receives hotkey from EditorEventListener, please take a look for limitations.
  5. Easy to divide hotkeys from partners' by custom editor layout.

To setup:

  1. Create a ShortcutList by menu "Assets/Create/WanzyeeStudio/Shortcut List".
  2. You may follow each option's tooltip to setup the layout in the Inspector.
  3. Add and reorder the asset items, also able to set the custom label and icon, and hotkey if need.
  4. Double click the list asset to open the Shortcut window, or use the context menu "Open".

The window:

  1. Context menu "Setup List" to edit the ShortcutList and apply immediately.
  2. Or "Change List" to show another list in the current window.
  3. Fuzzy search to filter the item names, e.g., type "sc" to filter "Shortcut" and "SCENE".

Drag'n'Drop:

  1. Drag assets in to add new items.
  2. Drag an item inside to reorder.
  3. Drag an item out for common operation, e.g., instantiate a prefab or assign an image.
  4. Drag an item to another Shortcut window to copy with the same item settings.
  5. Toggle the window top-right icon to lock or enable dragging to add and reorder.

To perform:

  1. Click an item to open or select the asset, according to the ShortcutList clicking settings.
  2. Or you can specify a custom clicking act to an item, override the list common setting.
  3. Right click to specify the act with a popup menu.
  4. Press "Ctrl" and right click to show the asset's context menu, just like in the Inspector title bar.
  5. For adding your own act into the menu, please reference ShortcutActAttribute.

Member Function Documentation

static void Open ( ShortcutList  list)
static

Open a window to show the specified ShortcutList.

Focus the existing one with the same list if found, otherwise open new.

Parameters
listList.
void AddItemsToMenu ( GenericMenu  menu)

Add the window context menu items.

Menu "About" to open the online manual, and "Change List" to pick another list to show. Menu "Setup List" to edit the current list settings, and "Find List" to select it.

Parameters
menuMenu.

Member Data Documentation

string search = ""

The search filter pattern in the search bar.

The list asset to show items.