Exemple #1
0
        /** ロード。
         *
         *      a_assets_path_with_extention	:  「Assets」からの相対パス。拡張子付き。
         *      a_encoding						: 文字列エンコード。
         *
         */
        public static string Load(string a_assets_path_with_extention)
        {
            //TODO:UnityEngine.Debug.Log(UnityEditor.AssetDatabase.GUIDFromAssetPath("Assets/" + a_assets_path_with_extention).ToString());

            return(LoadGuidWithFullPath.Load(AssetLib.GetApplicationDataPath() + '\\' + a_assets_path_with_extention));
        }
Exemple #2
0
 /** チェック。
  *
  *      a_assets_path					: 「Assets」からの相対パス。
  *      return == true					: 存在する。
  *
  */
 public static bool Check(string a_assets_path)
 {
     return(System.IO.Directory.Exists(AssetLib.GetApplicationDataPath() + '\\' + a_assets_path));
 }
 /** ロード。
  *
  *      a_streamingassets_path_with_extention	: 「StreamingAssets」からの相対バス。拡張子付き。
  *
  */
 public static UnityEngine.AssetBundle Load(string a_streamingassets_path_with_extention)
 {
     return(LoadAssetBundleWithFullPath.Load(AssetLib.GetApplicationStreamingAssetsPath() + '\\' + a_streamingassets_path_with_extention));
 }
 /** 作成。直下のみ。
  *
  *      a_assets_path					: 「Assets」からの相対パス。
  *
  */
 public static System.Collections.Generic.List <string> CreateTopOnly(string a_assets_path)
 {
     return(CreateDirectoryNameListWithFullPath.CreateTopOnly(AssetLib.GetApplicationDataPath() + '\\' + a_assets_path));
 }
 /** セーブ。
  *
  *      a_binary						: バイナリー。
  *      a_full_path_with_extention		: フルパス。拡張子付き。
  *
  */
 public static bool Save(byte[] a_binary, string a_full_path_with_extention)
 {
     return(SaveBinaryWithFullPath.Save(a_binary, AssetLib.GetApplicationDataPath() + '\\' + a_full_path_with_extention));
 }
 /** チェック。
  *
  *      a_assets_path_with_extention	: 「Assets」からの相対パス。拡張子付き。
  *      return == true					: 存在する。
  *
  */
 public static bool Check(string a_assets_path_with_extention)
 {
     return(System.IO.File.Exists(AssetLib.GetApplicationDataPath() + '\\' + a_assets_path_with_extention));
 }
 /** ロード。
  *
  *      a_assets_path_with_extention	: 「Assets」からの相対パス。拡張子付き。
  *
  */
 public static string Load(string a_assets_path_with_extention)
 {
     byte[]             t_binary = LoadBinaryWithFullPath.Load(AssetLib.GetApplicationDataPath() + '\\' + a_assets_path_with_extention);
     EncodeCheck.Result t_result = EncodeCheck.GetEncoding(t_binary);
     return(t_result.encoding.GetString(t_binary, t_result.bomsize, t_binary.Length - t_result.bomsize));
 }
 /** ロード。
  *
  *      a_assets_path_with_extention	: 「Assets」からの相対パス。拡張子付き。
  *      a_encoding						: エンコード。
  *      a_offset						: オフセット。
  *
  */
 public static string Load(string a_assets_path_with_extention, System.Text.Encoding a_encoding, int a_offset)
 {
     byte[] t_binary = LoadBinaryWithFullPath.Load(AssetLib.GetApplicationDataPath() + '\\' + a_assets_path_with_extention);
     return(a_encoding.GetString(t_binary, a_offset, t_binary.Length - a_offset));
 }
Exemple #9
0
 /** セーブ。BOMなし。UTF8。
  *
  *      a_text							: テキスト。
  *      a_assets_path_with_extention	: 「Assets」からの相対バス。拡張子付き。
  *      a_linefeedoption				: 改行コード。
  *
  */
 public static string SaveNoBomUtf8(string a_text, string a_assets_path_with_extention, LineFeedOption a_linefeedoption)
 {
     return(SaveTextWithFullPath.SaveNoBomUtf8(a_text, AssetLib.GetApplicationDataPath() + '\\' + a_assets_path_with_extention, a_linefeedoption));
 }
 /** 作成。
  *
  *      a_assets_path					: 「Assets」からの相対パス。
  *
  */
 public static System.IO.DirectoryInfo Create(string a_assets_path)
 {
     return(CreateDirectoryWithFullPath.Create(AssetLib.GetApplicationDataPath() + '\\' + a_assets_path));
 }
Exemple #11
0
 /** セーブ。
  *
  *      a_text							: テキスト。
  *      a_assets_path_with_extention	: 「Assets」からの相対バス。拡張子付き。
  *      a_encoding						: エンコード。
  *      a_linefeedoption				: 改行コード。
  *
  */
 public static string Save(string a_text, string a_assets_path_with_extention, System.Text.Encoding a_encoding, LineFeedOption a_linefeedoption)
 {
     return(SaveTextWithFullPath.Save(a_text, AssetLib.GetApplicationDataPath() + '\\' + a_assets_path_with_extention, a_encoding, a_linefeedoption));
 }
 /** 削除。
  *
  *      a_assets_path					: 「Assets」からの相対パス。
  *
  */
 public static bool Delete(string a_assets_path)
 {
     return(DeleteDirectoryWithFullPath.Delete(AssetLib.GetApplicationDataPath() + '\\' + a_assets_path));
 }
 /** ロード。
  *
  *      a_streamingassets_path_with_extention	: 「StreamingAssets」からの相対バス。拡張子付き。
  *      a_buffer								: バッファ。
  *
  *      return.result == true					: 成功。
  *      return.value							: 読み込みサイズ。
  *
  */
 public static MultiResult <bool, int> LoadToBuffer(string a_streamingassets_path_with_extention, byte[] a_buffer)
 {
     return(LoadBinaryWithFullPath.LoadToBuffer(AssetLib.GetApplicationStreamingAssetsPath() + '\\' + a_streamingassets_path_with_extention, a_buffer));
 }
 /** ロード。
  *
  *      a_streamingassets_path_with_extention	: 「StreamingAssets」からの相対バス。拡張子付き。
  *      return									: バイナリ。
  *
  */
 public static byte[] Load(string a_streamingassets_path_with_extention)
 {
     return(LoadBinaryWithFullPath.Load(AssetLib.GetApplicationStreamingAssetsPath() + '\\' + a_streamingassets_path_with_extention));
 }
Exemple #15
0
 /** ファイル削除。
  *
  *      a_assets_path_with_extention	: 「Assets」からの相対パス。拡張子付き。
  *
  */
 public static bool Delete(string a_assets_path_with_extention)
 {
     return(DeleteFileWithFullPath.Delete(AssetLib.GetApplicationDataPath() + '\\' + a_assets_path_with_extention));
 }