Example #1
0
 /** パッケージ作成。
  *
  *      a_packages_path					: パッケージ化するパス。「Packages」からの相対パス。
  *      a_filename						: 「xxx.unitypackage」。
  *      a_option						: オプション。
  *      return == true					: 成功。
  *
  */
 public static bool TryCreate(string a_packages_path, string a_filename, UnityEditor.ExportPackageOptions a_option)
 {
                 #pragma warning disable 0168
     try{
         return(Create(a_packages_path, a_filename, a_option));
     }catch (System.Exception t_exception) {
                         #if (DEF_BLUEBACK_ASSETLIB_ASSERT)
         DebugTool.Assert(false, t_exception);
                         #endif
         return(false);
     }
                 #pragma warning restore
 }
Example #2
0
        /** パッケージ。作成。
         */
        private static void BuildFeePackage()
        {
            //サブディレクトリの再帰探査。
            UnityEditor.ExportPackageOptions t_option = UnityEditor.ExportPackageOptions.Recurse;

            //非同期実行。
            t_option |= UnityEditor.ExportPackageOptions.Interactive;

            //ファイル名。
            string t_filename = "fee_" + System.DateTime.Now.ToString("yyyyMMdd_HH") + ".unitypackage";

            //ディレクトリ名。
            Fee.File.Path t_fee_path = Fee.EditorTool.Utility.FindFeePath();

            //出力。
            Fee.EditorTool.Utility.ExportPackage(t_fee_path, t_filename, t_option);
        }
Example #3
0
 /** パッケージ作成。
  *
  *      a_packages_path					: パッケージ化するパス。「Packages」からの相対パス。
  *      a_filename						: 「xxx.unitypackage」。
  *      a_option						: オプション。
  *
  */
 public static bool Create(string a_packages_path, string a_filename, UnityEditor.ExportPackageOptions a_option)
 {
     UnityEditor.AssetDatabase.ExportPackage("Packages/" + a_packages_path, a_filename, a_option);
     return(true);
 }
Example #4
0
        /** ExportPackage
         *
         *      a_assets_path	: アセットフォルダからの相対パス。
         *
         */
        public static void ExportPackage(Fee.File.Path a_assets_path, string a_package_name, UnityEditor.ExportPackageOptions a_option)
        {
            try{
                string t_path = "Assets/" + a_assets_path.GetNormalizePath();

                UnityEngine.Debug.Log("ExportPackage : " + t_path + " : " + a_package_name);
                UnityEditor.AssetDatabase.ExportPackage(t_path, a_package_name, a_option);
            }catch (System.Exception t_exception) {
                UnityEngine.Debug.LogError(t_exception.Message);
            }
        }
Example #5
0
        /** ExportPackage
         */
        public static void ExportPackage(Fee.File.Path a_assets_path, string a_package_name, UnityEditor.ExportPackageOptions a_option)
        {
            try{
                string t_path = "Assets/" + a_assets_path.GetPathCutLastSeparator();

                Tool.EditorLog("ExportPackage : " + t_path + " : " + a_package_name);
                UnityEditor.AssetDatabase.ExportPackage(t_path, a_package_name, a_option);
            }catch (System.Exception t_exception) {
                Tool.EditorLogError(t_exception.Message);
            }
        }