ayellowpaper / SerializedDictionary

MIT License
54 stars 10 forks source link

Use guid while getting files #7

Open YunusYld opened 6 months ago

YunusYld commented 6 months ago

Your plugin already includes the .meta files which can be used for getting settings or assets directly without re-searching whole directory tree because even the user move the file somewhere, it will locate. Or even the user delete the file, he can re-import back with old .meta file.

My issue is in this line so converting the AssetDatabase.LoadAssetAtPath("Path"); to AssetDatabase.LoadAssetAtPath(AssetDatabase.GUIDToAssetPath("guid")); will fix it. Thank you for this package.

Vivraan commented 5 months ago

Please make a PR for this!