コード例 #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
ファイル: ExportSceneWizard.cs プロジェクト: mikecrews/FFWD
    static void ExportOpenScene()
    {
        ExportCommands cmd = new ExportCommands("Export open scene");

        cmd.ExportOpenScene();
        EditorUtility.ClearProgressBar();
    }
コード例 #3
0
ファイル: ExportSceneWizard.cs プロジェクト: mikecrews/FFWD
    static void ExportActiveScenes()
    {
        ExportCommands cmd = new ExportCommands("Export active scene group");

        cmd.ExportActiveScenes();
        EditorUtility.ClearProgressBar();
    }
コード例 #4
0
ファイル: ExportSceneWizard.cs プロジェクト: mikecrews/FFWD
    static void ExportAllScripts()
    {
        ExportCommands cmd = new ExportCommands("Export all scripts");

        cmd.ExportAllScripts();
        EditorUtility.ClearProgressBar();
    }
コード例 #5
0
ファイル: ExportSceneWizard.cs プロジェクト: mikecrews/FFWD
    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
ファイル: ExportSceneWizard.cs プロジェクト: Joelone/FFWD
 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
ファイル: ExportSceneWizard.cs プロジェクト: Joelone/FFWD
 static void ExportTextAsset(MenuCommand command)
 {
     ExportCommands cmd = new ExportCommands("Export text asset");
     TextAsset asset = command.context as TextAsset;
     cmd.ExportTextAsset(asset);
 }
コード例 #8
0
ファイル: ExportSceneWizard.cs プロジェクト: Joelone/FFWD
 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();
    }
コード例 #12
0
 static void ExportActiveScenes()
 {
     ExportCommands cmd = new ExportCommands();
     cmd.ExportActiveScenes();
 }
コード例 #13
0
 static void ExportOpenScene()
 {
     ExportCommands cmd = new ExportCommands();
     cmd.ExportOpenScene();
 }
コード例 #14
0
 static void ExportAllScripts()
 {
     ExportCommands cmd = new ExportCommands();
     cmd.ExportAllScripts();
 }
コード例 #15
0
ファイル: ExportSceneWizard.cs プロジェクト: Joelone/FFWD
 static void ExportActiveScenes()
 {
     ExportCommands cmd = new ExportCommands("Export active scene group");
     cmd.ExportActiveScenes();
 }
コード例 #16
0
ファイル: ExportSceneWizard.cs プロジェクト: Joelone/FFWD
 static void ExportTransform(MenuCommand command)
 {
     ExportCommands cmd = new ExportCommands("Export transform");
     cmd.ExportResource(((Transform)command.context).gameObject);
 }
コード例 #17
0
ファイル: ExportSceneWizard.cs プロジェクト: Joelone/FFWD
 static void ExportActiveScenes()
 {
     ExportCommands cmd = new ExportCommands("Export active scene group");
     cmd.ExportActiveScenes();
     EditorUtility.ClearProgressBar();
 }
コード例 #18
0
ファイル: ExportSceneWizard.cs プロジェクト: Joelone/FFWD
 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
ファイル: ExportSceneWizard.cs プロジェクト: Joelone/FFWD
 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
ファイル: ExportSceneWizard.cs プロジェクト: Joelone/FFWD
 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
ファイル: ExportSceneWizard.cs プロジェクト: Joelone/FFWD
 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
ファイル: ExportSceneWizard.cs プロジェクト: Joelone/FFWD
 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();
    }