static void ExportTextAsset(MenuCommand command) { ExportCommands cmd = new ExportCommands("Export text asset"); TextAsset asset = command.context as TextAsset; cmd.ExportTextAsset(asset); }
static void ExportOpenScene() { ExportCommands cmd = new ExportCommands("Export open scene"); cmd.ExportOpenScene(); EditorUtility.ClearProgressBar(); }
static void ExportActiveScenes() { ExportCommands cmd = new ExportCommands("Export active scene group"); cmd.ExportActiveScenes(); EditorUtility.ClearProgressBar(); }
static void ExportAllScripts() { ExportCommands cmd = new ExportCommands("Export all scripts"); cmd.ExportAllScripts(); EditorUtility.ClearProgressBar(); }
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(); }
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(); }
static void ExportTextAsset(MenuCommand command) { ExportCommands cmd = new ExportCommands("Export text asset"); TextAsset asset = command.context as TextAsset; cmd.ExportTextAsset(asset); }
static void ExportAllScenes() { ExportCommands cmd = new ExportCommands("Export all scenes"); cmd.ExportAllScenes(); }
static void ExportTransform(MenuCommand command) { ExportCommands cmd = new ExportCommands("Export transform"); cmd.ExportResource(((Transform)command.context).gameObject); }
static void ExportActiveScenes() { ExportCommands cmd = new ExportCommands("Export active scene group"); cmd.ExportActiveScenes(); }
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(); }
static void ExportActiveScenes() { ExportCommands cmd = new ExportCommands("Export active scene group"); cmd.ExportActiveScenes(); }
static void ExportTransform(MenuCommand command) { ExportCommands cmd = new ExportCommands("Export transform"); cmd.ExportResource(((Transform)command.context).gameObject); }
static void ExportActiveScenes() { ExportCommands cmd = new ExportCommands("Export active scene group"); cmd.ExportActiveScenes(); EditorUtility.ClearProgressBar(); }
static void ExportAllScripts() { ExportCommands cmd = new ExportCommands("Export all scripts"); cmd.ExportAllScripts(); EditorUtility.ClearProgressBar(); }
static void ExportRenderSettings() { ExportCommands cmd = new ExportCommands("Export render settings"); cmd.ExportTags(); }
static void ExportOpenScene() { ExportCommands cmd = new ExportCommands("Export open scene"); cmd.ExportOpenScene(); EditorUtility.ClearProgressBar(); }
static void ExportAllScenes() { ExportCommands cmd = new ExportCommands("Export all scenes"); cmd.ExportAllScenes(); }
static void ExportRenderSettings() { ExportCommands cmd = new ExportCommands("Export render settings"); cmd.ExportTags(); }
static void ExportAllScripts() { ExportCommands cmd = new ExportCommands("Export all scripts"); cmd.ExportAllScripts(); }
static void ExportScript(MenuCommand command) { ExportCommands cmd = new ExportCommands("Export script"); cmd.ExportScript(command.context as MonoBehaviour); }
static void ExportScript(MenuCommand command) { ExportCommands cmd = new ExportCommands("Export script"); cmd.ExportScript(command.context as MonoBehaviour); }
static void ExportTags(MenuCommand command) { ExportCommands cmd = new ExportCommands("Export tags"); cmd.ExportTags(); }
static void ExportTags(MenuCommand command) { ExportCommands cmd = new ExportCommands("Export tags"); cmd.ExportTags(); }
static void ExportActiveScenes() { ExportCommands cmd = new ExportCommands(); cmd.ExportActiveScenes(); }