Skip to content

Commit 6317e4e

Browse files
Haruma-Kclaude
andcommitted
refactor: AssetFilterAssetの後方互換性のための実装を削除
IsMatchメソッドの古いシグネチャ(address, addressableAssetGroupパラメータなし)を削除し、 新しいシグネチャのみを使用するように変更。これにより全てのAssetFilterで 新しいパラメータを使用できるようになった。 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f36caa8 commit 6317e4e

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

Assets/SmartAddresser/Editor/Core/Models/Shared/AssetGroups/AssetFilterImpl/AssetFilterAsset.cs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using SmartAddresser.Editor.Core.Models.Shared.AssetGroups.ValidationError;
3+
using UnityEditor.AddressableAssets.Settings;
34
using UnityEngine;
45

56
namespace SmartAddresser.Editor.Core.Models.Shared.AssetGroups.AssetFilterImpl
@@ -19,16 +20,8 @@ public virtual bool Validate(out AssetFilterValidationError error)
1920
}
2021

2122
/// <inheritdoc />
22-
public bool IsMatch(string assetPath, Type assetType, bool isFolder, string address, UnityEditor.AddressableAssets.Settings.AddressableAssetGroup addressableAssetGroup)
23-
{
24-
return IsMatch(assetPath, assetType, isFolder);
25-
}
26-
27-
/// <summary>
28-
/// Legacy IsMatch method for backward compatibility.
29-
/// Override this method in derived classes to implement filtering logic.
30-
/// </summary>
31-
public abstract bool IsMatch(string assetPath, Type assetType, bool isFolder);
23+
public abstract bool IsMatch(string assetPath, Type assetType, bool isFolder, string address,
24+
AddressableAssetGroup addressableAssetGroup);
3225

3326
/// <inheritdoc />
3427
public abstract string GetDescription();

0 commit comments

Comments
 (0)