Some AssetBundle Support.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
class SelectAllOfTagSingle : ScriptableWizard
|
||||
{
|
||||
|
||||
string tagName = "ExampleTag";
|
||||
|
||||
|
||||
[MenuItem("Example/Get")]
|
||||
static void SelectAllOfTagSingleWizard()
|
||||
{
|
||||
ScriptableWizard.DisplayWizard(
|
||||
"Example/Get",
|
||||
typeof(SelectAllOfTagSingle),
|
||||
"Make Selection");
|
||||
}
|
||||
|
||||
void OnWizardCreate()
|
||||
{
|
||||
AssetDatabase.RemoveObjectFromAsset(Selection.objects[0]);
|
||||
AssetDatabase.CreateAsset(Selection.objects[0], "Assets/"+ Selection.objects[0].name + ".asset");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user