绝对路径->相对路径
string mp =“H:unity(project)New Unity ProjectAssets111.mat”;
mp = mp.Substring(mp.IndexOf("Assets"));
mp = mp.Replace('\', '/');
变成Assets111.mat
相对路径转绝对路径
string path="Assets";
DirectoryInfo direction = new DirectoryInfo(path);
FileInfo[] files = direction.GetFiles("*", SearchOption.TopDirectoryOnly);
path=files[0].FullName.ToString();
变成“H:unity(project)New Unity ProjectAssets111.mat“(有空补)