Browse Source

Add menu item to generate Lite fungus package, no examples included

master
Steve Halliwell 5 years ago
parent
commit
e301c6af28
  1. 15
      Assets/Fungus/Scripts/Editor/FlowchartMenuItems.cs

15
Assets/Fungus/Scripts/Editor/FlowchartMenuItems.cs

@ -37,7 +37,18 @@ namespace Fungus.EditorUtils
}
[MenuItem("Tools/Fungus/Utilities/Export Fungus Package")]
static void ExportFungusPackage()
static void ExportFungusPackageFull()
{
ExportFungusPackage( new string[] {"Assets/Fungus", "Assets/FungusExamples" });
}
[MenuItem("Tools/Fungus/Utilities/Export Fungus Package - Lite")]
static void ExportFungusPackageLite()
{
ExportFungusPackage(new string[] { "Assets/Fungus" });
}
static void ExportFungusPackage(string[] folders)
{
string path = EditorUtility.SaveFilePanel("Export Fungus Package", "", "Fungus", "unitypackage");
if (path.Length == 0)
@ -45,8 +56,6 @@ namespace Fungus.EditorUtils
return;
}
string[] folders = new string[] {"Assets/Fungus", "Assets/FungusExamples" };
AssetDatabase.ExportPackage(folders, path, ExportPackageOptions.Recurse);
}

Loading…
Cancel
Save