示例#1
0
    static void ExportTextAsset(MenuCommand command)
    {
        ExportCommands cmd   = new ExportCommands("Export text asset");
        TextAsset      asset = command.context as TextAsset;

        cmd.ExportTextAsset(asset);
    }
示例#2
0
    static void ExportOpenScene()
    {
        ExportCommands cmd = new ExportCommands("Export open scene");

        cmd.ExportOpenScene();
        EditorUtility.ClearProgressBar();
    }
示例#3
0
    static void ExportActiveScenes()
    {
        ExportCommands cmd = new ExportCommands("Export active scene group");

        cmd.ExportActiveScenes();
        EditorUtility.ClearProgressBar();
    }
示例#4
0
    static void ExportAllScripts()
    {
        ExportCommands cmd = new ExportCommands("Export all scripts");

        cmd.ExportAllScripts();
        EditorUtility.ClearProgressBar();
    }
示例#5
0
    static void ExportAllResources()
    {
        ExportCommands cmd = new ExportCommands("Export all resources");

        UnityEngine.Object[] os = Resources.LoadAll("");
        foreach (var item in os)
        {
            try
            {
                if (item is GameObject)
                {
                    cmd.ExportResource(item as GameObject);
                }
                if (item is TextAsset)
                {
                    cmd.ExportTextAsset(item as TextAsset);
                }
                if (item is Texture2D)
                {
                    cmd.ExportTexture(item as Texture2D);
                }
                if (item is AudioClip)
                {
                    cmd.ExportAudio(item as AudioClip);
                }
                if (item is Material)
                {
                    cmd.ExportMaterial(item as Material);
                }
            }
            catch (Exception ex)
            {
                Debug.Log("Could not export " + item.name + ". " + ex.Message);
            }
        }
        Resources.UnloadUnusedAssets();
        EditorUtility.ClearProgressBar();
    }
示例#6
0
 static void ExportAllResources()
 {
     ExportCommands cmd = new ExportCommands("Export all resources");
     UnityEngine.Object[] os = Resources.LoadAll("");
     foreach (var item in os)
     {
         try
         {
             if (item is GameObject)
             {
                 cmd.ExportResource(item as GameObject);
             }
             if (item is TextAsset)
             {
                 cmd.ExportTextAsset(item as TextAsset);
             }
             if (item is Texture2D)
             {
                 cmd.ExportTexture(item as Texture2D);
             }
             if (item is AudioClip)
             {
                 cmd.ExportAudio(item as AudioClip);
             }
             if (item is Material)
             {
                 cmd.ExportMaterial(item as Material);
             }
         }
         catch (Exception ex)
         {
             Debug.Log("Could not export " + item.name + ". " + ex.Message);
         }
     }
     Resources.UnloadUnusedAssets();
     EditorUtility.ClearProgressBar();
 }
示例#7
0
 static void ExportTextAsset(MenuCommand command)
 {
     ExportCommands cmd = new ExportCommands("Export text asset");
     TextAsset asset = command.context as TextAsset;
     cmd.ExportTextAsset(asset);
 }
示例#8
0
 static void ExportAllScenes()
 {
     ExportCommands cmd = new ExportCommands("Export all scenes");
     cmd.ExportAllScenes();
 }
示例#9
0
    static void ExportTransform(MenuCommand command)
    {
        ExportCommands cmd = new ExportCommands("Export transform");

        cmd.ExportResource(((Transform)command.context).gameObject);
    }
示例#10
0
    static void ExportActiveScenes()
    {
        ExportCommands cmd = new ExportCommands("Export active scene group");

        cmd.ExportActiveScenes();
    }
示例#11
0
    static void ExportOpenScene()
    {
        ExportCommands cmd = new ExportCommands("Export open scene");

        cmd.ExportOpenScene();
    }
 static void ExportActiveScenes()
 {
     ExportCommands cmd = new ExportCommands();
     cmd.ExportActiveScenes();
 }
 static void ExportOpenScene()
 {
     ExportCommands cmd = new ExportCommands();
     cmd.ExportOpenScene();
 }
 static void ExportAllScripts()
 {
     ExportCommands cmd = new ExportCommands();
     cmd.ExportAllScripts();
 }
示例#15
0
 static void ExportActiveScenes()
 {
     ExportCommands cmd = new ExportCommands("Export active scene group");
     cmd.ExportActiveScenes();
 }
示例#16
0
 static void ExportTransform(MenuCommand command)
 {
     ExportCommands cmd = new ExportCommands("Export transform");
     cmd.ExportResource(((Transform)command.context).gameObject);
 }
示例#17
0
 static void ExportActiveScenes()
 {
     ExportCommands cmd = new ExportCommands("Export active scene group");
     cmd.ExportActiveScenes();
     EditorUtility.ClearProgressBar();
 }
示例#18
0
 static void ExportAllScripts()
 {
     ExportCommands cmd = new ExportCommands("Export all scripts");
     cmd.ExportAllScripts();
     EditorUtility.ClearProgressBar();
 }
示例#19
0
    static void ExportRenderSettings()
    {
        ExportCommands cmd = new ExportCommands("Export render settings");

        cmd.ExportTags();
    }
示例#20
0
 static void ExportOpenScene()
 {
     ExportCommands cmd = new ExportCommands("Export open scene");
     cmd.ExportOpenScene();
     EditorUtility.ClearProgressBar();
 }
示例#21
0
    static void ExportAllScenes()
    {
        ExportCommands cmd = new ExportCommands("Export all scenes");

        cmd.ExportAllScenes();
    }
示例#22
0
 static void ExportRenderSettings()
 {
     ExportCommands cmd = new ExportCommands("Export render settings");
     cmd.ExportTags();
 }
示例#23
0
    static void ExportAllScripts()
    {
        ExportCommands cmd = new ExportCommands("Export all scripts");

        cmd.ExportAllScripts();
    }
示例#24
0
 static void ExportScript(MenuCommand command)
 {
     ExportCommands cmd = new ExportCommands("Export script");
     cmd.ExportScript(command.context as MonoBehaviour);
 }
示例#25
0
    static void ExportScript(MenuCommand command)
    {
        ExportCommands cmd = new ExportCommands("Export script");

        cmd.ExportScript(command.context as MonoBehaviour);
    }
示例#26
0
 static void ExportTags(MenuCommand command)
 {
     ExportCommands cmd = new ExportCommands("Export tags");
     cmd.ExportTags();
 }
示例#27
0
    static void ExportTags(MenuCommand command)
    {
        ExportCommands cmd = new ExportCommands("Export tags");

        cmd.ExportTags();
    }
示例#28
0
    static void ExportActiveScenes()
    {
        ExportCommands cmd = new ExportCommands();

        cmd.ExportActiveScenes();
    }