当前位置:网站首页>Unity get resource path

Unity get resource path

2022-06-25 06:42:00 Last zero

1、 obtain GUID

Will get all files with this name , The return value is string Array .

string[] guids = AssetDatabase.FindAssets("***");

2、 Get path

adopt guid Get file path , Will get xx/xx/xxx.xx.

string path0 = AssetDatabase.GUIDToAssetPath(guids[0]);
原网站

版权声明
本文为[Last zero]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/176/202206250429341935.html