kingBook

导航

unity 获取Project面板已选择资源的路径

string[] guids=Selection.assetGUIDs;
int i=guids.Length;
while(--i>=0){
    string guid=guids[i];
    string assetPath=AssetDatabase.GUIDToAssetPath(guid);
    Debug.Log(assetPath);
}

posted on 2020-05-07 10:35  kingBook  阅读(1119)  评论(0编辑  收藏  举报