Removed prefixes on paths

This commit is contained in:
Anders Ejlersen 2026-05-19 22:11:31 +02:00
parent 47c9c53819
commit 01ac17a078
2 changed files with 4 additions and 4 deletions

View file

@ -156,7 +156,7 @@ namespace Module.ProjectValidator.Editor
for (var j = 0; j < rootObjects.Count; j++) for (var j = 0; j < rootObjects.Count; j++)
{ {
ValidateGameObject(rootObjects[j], "scene:", report, true); ValidateGameObject(rootObjects[j], string.Empty, report, true);
} }
if (!isLoaded) if (!isLoaded)
@ -182,7 +182,7 @@ namespace Module.ProjectValidator.Editor
{ {
try try
{ {
ValidateGameObject(assets[i], "prefab:", report, true); ValidateGameObject(assets[i], string.Empty, report, true);
} }
catch (Exception e) catch (Exception e)
{ {
@ -212,7 +212,7 @@ namespace Module.ProjectValidator.Editor
{ {
var assetGuid = EditorAssetUtility.ObjectToAssetGuid(obj); var assetGuid = EditorAssetUtility.ObjectToAssetGuid(obj);
var assetPath = AssetDatabase.GUIDToAssetPath(assetGuid); var assetPath = AssetDatabase.GUIDToAssetPath(assetGuid);
Validate(assetGuid, $"asset:{assetPath}", obj, report); Validate(assetGuid, assetPath, obj, report);
} }
private static void ValidateGameObject(GameObject gameObject, string relativePath, Report report, bool initial) private static void ValidateGameObject(GameObject gameObject, string relativePath, Report report, bool initial)

View file

@ -1,6 +1,6 @@
{ {
"name": "com.module.project-validator", "name": "com.module.project-validator",
"version": "0.5.0", "version": "0.6.0",
"displayName": "Module.ProjectValidator", "displayName": "Module.ProjectValidator",
"description": "", "description": "",
"unity": "6000.3", "unity": "6000.3",