Hi,
i want to write an EditorScript which marks all unused materials in the projectview, but i didnt know how to search the project view. Any ideas for that? Thanks...
Hi,
i want to write an EditorScript which marks all unused materials in the projectview, but i didnt know how to search the project view. Any ideas for that? Thanks...
I haven't found any way of querying the asset database for all assets other than selecting everything in the editor and use `Selection.GetFiltered`.
A more brute force way would be to use `System.IO.DirectoryInfo("Assets")` to iterate through all the files and folders under "Assets/" and for each file use `AssetDatabase.LoadAllAssetsAtPath` to get the assets corresponding to that file.