コード例 #1
0
ファイル: GitCallbacks.cs プロジェクト: oznogongames/UniGit
 public void IssueAssetDatabaseRefresh()
 {
     if (RefreshAssetDatabase != null)
     {
         RefreshAssetDatabase.Invoke();
     }
 }
コード例 #2
0
 /** テキストコンバート。
  *
  *      a_assets_path					: 「Assets」からの相対パス。
  *      a_directory_pattern				: ディレクトリ名の正規表現パターン。
  *      a_file_pattern					: ファイル名の正規表現パターン。
  *      a_encoding						: エンコード。
  *      a_linefeed_option				: 改行コード。
  *
  */
 public static bool ConvertAll(string a_assets_path, string a_directory_pattern, string a_file_pattern, System.Text.Encoding a_encoding, LineFeedOption a_linefeed_option)
 {
     System.Collections.Generic.List <string> t_list = FindFileWithAssetsPath.FindAll(a_assets_path, a_directory_pattern, a_file_pattern);
     for (int ii = 0; ii < t_list.Count; ii++)
     {
         string t_path = t_list[ii];
         string t_text = LoadTextWithAssetsPath.Load(t_list[ii]);
         SaveTextWithAssetsPath.Save(t_text, t_path, a_encoding, a_linefeed_option);
     }
     RefreshAssetDatabase.Refresh();
     return(true);
 }