mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-22 08:08:51 -05:00
#224 - Move Atoms Search back to its own sub menu. Having same sub path for both MenuItem and CreateAssetMenu is causing the menu to be removed.
This commit is contained in:
parent
ada6b56ab1
commit
8417d673e3
@ -33,7 +33,7 @@ namespace UnityAtoms.Editor
|
||||
}
|
||||
}
|
||||
|
||||
[MenuItem(itemName: "Assets/Create/Unity Atoms/Search &1", isValidateFunction: false, priority: -1)] // Adds to the project window's create menu
|
||||
[MenuItem(itemName: "Assets/Create/Atoms Search &1", isValidateFunction: false, priority: -1)] // Adds to the project window's create menu
|
||||
public static void AtomsSearchMenu()
|
||||
{
|
||||
StringTree<Type> typeTree = new StringTree<Type>();
|
||||
@ -55,8 +55,7 @@ namespace UnityAtoms.Editor
|
||||
var dropdown = new SearchTypeDropdown(new AdvancedDropdownState(), typeTree,
|
||||
(s) =>
|
||||
{
|
||||
EditorApplication.ExecuteMenuItem("Assets/Create/" +
|
||||
s.GetCustomAttribute<CreateAssetMenuAttribute>().menuName);
|
||||
EditorApplication.ExecuteMenuItem("Assets/Create/" + s.GetCustomAttribute<CreateAssetMenuAttribute>().menuName);
|
||||
})
|
||||
{
|
||||
MinimumSize = new Vector2(projectBrowser.position.width - 20, projectBrowser.position.height - 80)
|
||||
|
Loading…
Reference in New Issue
Block a user