[unity] Fixed compile error of preceding commit 9507491 on old Unity versions. See #2940.

This commit is contained in:
Harald Csaszar 2025-10-01 11:38:38 +02:00
parent 9507491927
commit 26efd7e01d

View File

@ -399,7 +399,7 @@ namespace Spine.Unity.Editor {
List<AtlasAssetBase> newAtlases = new List<AtlasAssetBase>();
foreach (string atlasPath in atlasPaths) {
#if PROBLEMATIC_PACKAGE_ASSET_MODIFICATION
if (ap.StartsWith("Packages"))
if (atlasPath.StartsWith("Packages"))
continue;
#endif
TextAsset atlasText = AssetDatabase.LoadAssetAtPath<TextAsset>(atlasPath);