获取工程中文件的绝对路径
[MenuItem("Tools/GetSelectPaths")]
public static void Execute()
{
string[] strs = Selection.assetGUIDs;
var curPath = System.IO.Directory.GetCurrentDirectory();
foreach (var item in strs)
{
string path = AssetDatabase.GUIDToAssetPath(item);
Debug.Log(curPath+"/"+path);
}
}
https://blog.csdn.net/qq_14914623