Ejemplo n.º 1
0
 /** ディレクトリパス。変更。
  *
  *      a_path.GetDirectoryPath()に変更。
  *
  */
 public void ChangeDirectoryPath(Fee.File.Path a_path, string a_separator)
 {
     this.path = CreateDirectoryPathChangePath(a_path.GetDirectoryPath(), a_separator).GetPath();
 }
Ejemplo n.º 2
0
        /** FindFeePath
         *
         *      return : アセットフォルダからの相対パス。
         *
         */
        public static Fee.File.Path FindFeePath()
        {
            Fee.File.Path t_path = null;

            try{
                Fee.File.Path t_directory           = Fee.EditorTool.Utility.FindFile(new File.Path(), "fee_buildtarget");
                string        t_directory_name      = System.IO.Path.GetDirectoryName(System.IO.Path.GetFullPath(t_directory.GetDirectoryPath() + "/"));
                string        t_root_directory_name = System.IO.Path.GetFullPath(Fee.File.Path.CreateAssetsPath().GetPath());
                t_directory_name = t_directory_name.Substring(t_root_directory_name.Length + 1);

                UnityEngine.Debug.Log("FindFeePath : " + t_directory_name);

                t_path = new File.Path(t_directory_name);
            }catch (System.Exception t_exception) {
                UnityEngine.Debug.LogError(t_exception.Message);
            }

            return(t_path);
        }
Ejemplo n.º 3
0
 /** ディレクトリパスを変更したパスを作成。
  *
  *      a_path.GetDirectoryPath() + this.GetFileName()
  *
  */
 public Fee.File.Path CreateDirectoryPathChangePath(Fee.File.Path a_path, string a_separator)
 {
     return(this.CreateDirectoryPathChangePath(a_path.GetDirectoryPath(), a_separator));
 }