@Flongo28 is kind of right. Here is how I fixed it for me within the project without specifying an absolute path.
Install the unitypackage if not done already: Rightclick on the Asset Folder in the Project View -> Import Package \ Custom Package -> select cleaner.unitypackage downloaded from this git.
Locate the ClassReferenceCollection.cs at <project root dir>\Assets\Cleaner\Editor\ClassReferenceCollection.cs
Change the CollectionAllClasses function. There needs to be absolute references, not relative as the LoadFile function gets a.t.m..
cleaner.unitypackage
downloaded from this git.<project root dir>\Assets\Cleaner\Editor\ClassReferenceCollection.cs
CollectionAllClasses
function. There needs to be absolute references, not relative as theLoadFile
function gets a.t.m..Here is what the function should look like:
You may copy and overwrite your definition with the given code.
If not done so, make a backup of your asset and library folder! It killed all urp shaders because i did not uncheck them in the process.
Save and go back to the Editor -> Window -> Delete Unused Settings.
Profit.
I do not have the time to make this a pull request. If someone does so, I would highly appreciate that.
Originally posted by @MatthiasPopp in https://github.com/tsubaki/UnityAssetCleaner/issues/3#issuecomment-1894647397