From ca4d33698f94f4b3b39a99bf56b68692f4f2d128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=80=9D=E6=B5=B7?= <1464576565@qq.com> Date: Tue, 17 Mar 2026 20:08:24 +0800 Subject: [PATCH] Update InputGlyphImage.cs --- .../Scripts/CustomeModule/InputGlyph/InputGlyphImage.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;