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

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

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

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

        cmd.ExportAllScripts();
        EditorUtility.ClearProgressBar();
    }
Beispiel #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();
    }
Beispiel #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();
 }
Beispiel #7
0
 static void ExportTextAsset(MenuCommand command)
 {
     ExportCommands cmd = new ExportCommands("Export text asset");
     TextAsset asset = command.context as TextAsset;
     cmd.ExportTextAsset(asset);
 }
Beispiel #8
0
 static void ExportAllScenes()
 {
     ExportCommands cmd = new ExportCommands("Export all scenes");
     cmd.ExportAllScenes();
 }
Beispiel #9
0
    static void ExportTransform(MenuCommand command)
    {
        ExportCommands cmd = new ExportCommands("Export transform");

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

        cmd.ExportActiveScenes();
    }
Beispiel #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();
 }
Beispiel #15
0
 static void ExportActiveScenes()
 {
     ExportCommands cmd = new ExportCommands("Export active scene group");
     cmd.ExportActiveScenes();
 }
Beispiel #16
0
 static void ExportTransform(MenuCommand command)
 {
     ExportCommands cmd = new ExportCommands("Export transform");
     cmd.ExportResource(((Transform)command.context).gameObject);
 }
Beispiel #17
0
 static void ExportActiveScenes()
 {
     ExportCommands cmd = new ExportCommands("Export active scene group");
     cmd.ExportActiveScenes();
     EditorUtility.ClearProgressBar();
 }
Beispiel #18
0
 static void ExportAllScripts()
 {
     ExportCommands cmd = new ExportCommands("Export all scripts");
     cmd.ExportAllScripts();
     EditorUtility.ClearProgressBar();
 }
Beispiel #19
0
    static void ExportRenderSettings()
    {
        ExportCommands cmd = new ExportCommands("Export render settings");

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

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

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

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

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

        cmd.ExportActiveScenes();
    }