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

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

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

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

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

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

        cmd.ExportActiveScenes();
    }
Exemplo n.º 11
0
    static void ExportOpenScene()
    {
        ExportCommands cmd = new ExportCommands("Export open scene");

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

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

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

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

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

        cmd.ExportTags();
    }
Exemplo n.º 28
0
    static void ExportActiveScenes()
    {
        ExportCommands cmd = new ExportCommands();

        cmd.ExportActiveScenes();
    }