project-curator
project-curator copied to clipboard
A convenient tool to help cleaning and maintaining Unity Projects 🧹✨
Closes #21 Closes #16 This was caused by a bug in Unity where an incorrect path was being passed to `OnWillCreateAsset`. For folders the path for the meta file was...
I got a few of these: ```cs ArgumentException: GUID required Parameter name: guid Ogxd.ProjectCurator.ProjectCurator.AssertGuidValid (System.String guid) (at ./Library/PackageCache/com.ogxd.project-curator@adc4b63683/Editor/ProjectCurator.cs:181) Ogxd.ProjectCurator.ProjectCurator.RemoveAssetFromDatabase (System.String guid) (at ./Library/PackageCache/com.ogxd.project-curator@adc4b63683/Editor/ProjectCurator.cs:67) Ogxd.ProjectCurator.AssetProcessor+c__DisplayClass3_0.b__0 () (at ./Library/PackageCache/com.ogxd.project-curator@adc4b63683/Editor/AssetProcessor.cs:39) Ogxd.ProjectCurator.AssetProcessor.OnUpdate () (at...
We're frequently getting these warnings from this project. ``` Asset 'Assets/_Game/Content/Chronospheres/ChronosphereUtilities/BiomeEquipmentTables/ClockworkTables/ClockworkItemTables/ClockworkItemTable.asset' that depends on 'Assets/_Game/Content/Clockwork/ClockworkItems/PowerCycle/PowerCycle.asset' doesn't have it as a dependency UnityEngine.Debug:LogWarning (object) Ogxd.ProjectCurator.ProjectCurator:RemoveAssetFromDatabase (string) (at ./Library/PackageCache/com.ogxd.project-curator@5a5eb9a295/Editor/ProjectCurator.cs:66) Ogxd.ProjectCurator.AssetProcessor/c__DisplayClass3_0:b__0 () (at...
Perhaps only on empty folder ``` ProjectCurator: Asset 'Assets/_Game/Config/Graphs/Statuses' is not present in the database UnityEngine.Debug:LogWarning (object) Ogxd.ProjectCurator.ProjectCurator:Warn (string) (at ./Library/PackageCache/com.ogxd.project-curator@6a70b7c196/Editor/ProjectCurator.cs:165) Ogxd.ProjectCurator.ProjectCurator:RemoveAssetFromDatabase (string) (at ./Library/PackageCache/com.ogxd.project-curator@6a70b7c196/Editor/ProjectCurator.cs:96) Ogxd.ProjectCurator.AssetProcessor:OnWillDeleteAsset (string,UnityEditor.RemoveAssetOptions) (at ./Library/PackageCache/com.ogxd.project-curator@6a70b7c196/Editor/AssetProcessor.cs:64) UnityEngine.GUIUtility:ProcessEvent...
# Context Database persists in memory as an array of reference types (AssetInfos), with 2 array for each AssetInfo to keep track of references of dependencies. This is rather simple...

Line of code: https://github.com/ogxd/project-curator/blob/da8a264a30daf02a7365dbac920203fe1c0d9277/Editor/StringUtility.cs#L13 Replace range indexing operation with string function calls. Example, from the referenced stack overflow answer (https://stackoverflow.com/a/7170953/317135): ```C# return input.Substring(0, input.Length - suffixToRemove.Length); ``` I'm maintaining a...