Browse Source

Added Export Fungus Package menu item

master
chrisgregan 9 years ago
parent
commit
c1fe3eb13f
  1. 14
      Assets/Fungus/Flowchart/Editor/FlowchartMenuItems.cs

14
Assets/Fungus/Flowchart/Editor/FlowchartMenuItems.cs

@ -29,6 +29,20 @@ namespace Fungus
SpawnPrefab("FungusLogo");
}
[MenuItem("Tools/Fungus/Utilities/Export Fungus Package")]
static void ExportFungusPackage()
{
string path = EditorUtility.SaveFilePanel("Export Fungus Package", "", "Fungus", "unitypackage");
if(path.Length == 0)
{
return;
}
string[] folders = new string[] {"Assets/Fungus", "Assets/FungusExamples" };
AssetDatabase.ExportPackage(folders, path, ExportPackageOptions.Recurse);
}
public static GameObject SpawnPrefab(string prefabName)
{
GameObject prefab = Resources.Load<GameObject>(prefabName);

Loading…
Cancel
Save