diff --git a/Client/Assets/Scripts/CustomeModule/InputGlyph/InputGlyphImage.cs b/Client/Assets/Scripts/CustomeModule/InputGlyph/InputGlyphImage.cs index 54700d6..087c4e8 100644 --- a/Client/Assets/Scripts/CustomeModule/InputGlyph/InputGlyphImage.cs +++ b/Client/Assets/Scripts/CustomeModule/InputGlyph/InputGlyphImage.cs @@ -2,10 +2,10 @@ using UnityEngine.InputSystem; using UnityEngine.UI; -public sealed class InputGlyphImage : MonoBehaviour public sealed class InputGlyphImage : InputGlyphBehaviourBase { [SerializeField] private InputActionReference actionReference; + [SerializeField] private string compositePartName; [SerializeField] private Image targetImage; [SerializeField] private bool hideIfMissing = false; [SerializeField] private GameObject hideTargetObject; @@ -36,7 +36,7 @@ public sealed class InputGlyphImage : InputGlyphBehaviourBase return; } - bool hasSprite = GlyphService.TryGetUISpriteForActionPath(actionReference, string.Empty, CurrentCategory, out Sprite sprite); + bool hasSprite = GlyphService.TryGetUISpriteForActionPath(actionReference, compositePartName, CurrentCategory, out Sprite sprite); if (_cachedSprite != sprite) { _cachedSprite = sprite;