mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-21 23:58:49 -05:00
Move atom search menu item
This commit is contained in:
parent
cede860ff4
commit
0091e579da
@ -33,7 +33,7 @@ namespace UnityAtoms.Editor
|
||||
}
|
||||
}
|
||||
|
||||
[MenuItem(itemName: "Assets/Create/Atoms Search &1", isValidateFunction: false, priority: -1)] // Adds to the project window's create menu
|
||||
[MenuItem(itemName: "Assets/Create/Unity 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>();
|
||||
@ -115,7 +115,7 @@ namespace UnityAtoms.Editor
|
||||
|
||||
protected override AdvancedDropdownItem BuildRoot()
|
||||
{
|
||||
var root = new AdvancedDropdownItem("UnityAtoms");
|
||||
var root = new AdvancedDropdownItem("Unity Atoms");
|
||||
|
||||
foreach (var subtree in _list.SubTrees)
|
||||
{
|
||||
|
@ -30,10 +30,8 @@ namespace UnityAtoms.Editor
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
Rect buttonRect = new Rect();
|
||||
var rect = GUILayoutUtility.GetRect(new GUIContent("Show"), EditorStyles.toolbarButton);
|
||||
|
||||
|
||||
if (GUILayout.Button("Select Type"))
|
||||
{
|
||||
var dropdown = new SearchTypeDropdown(new AdvancedDropdownState(), _types, (s) =>
|
||||
|
@ -36,7 +36,7 @@ namespace UnityAtoms.Editor
|
||||
static void RegenereateAssets()
|
||||
{
|
||||
if (!EditorUtility.DisplayDialog("Regenerate", "This will regenerate all Atoms from Generation-Assets",
|
||||
"ok", "cancel"))
|
||||
"Ok", "Cancel"))
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -47,8 +47,6 @@ namespace UnityAtoms.Editor
|
||||
var path = AssetDatabase.GUIDToAssetPath(guid);
|
||||
AssetDatabase.LoadAssetAtPath<AtomGenerator>(path).Generate();
|
||||
}
|
||||
|
||||
//Debug.Log(sb.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user