From fd9c20c8a8f400119d7bf2d7846c8e0d284549e9 Mon Sep 17 00:00:00 2001 From: Lihao7788 <2470304407@qq.com> Date: Wed, 5 Mar 2025 17:17:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=EF=BC=8Cdevice=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=EF=BC=8C=E9=97=AA=E7=83=81=EF=BC=8C=E6=AF=8F=E6=AC=A1?= =?UTF-8?q?=E9=83=BD=E9=BB=98=E8=AE=A4outLine=E4=B8=BA1=EF=BC=8C=E4=B8=8D?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E4=B8=BA0=EF=BC=8C=E9=81=BF=E5=85=8D?= =?UTF-8?q?=E5=85=B6=E4=BB=96=E5=8A=9F=E8=83=BD=E4=BF=AE=E6=94=B9outLine?= =?UTF-8?q?=E7=9A=84=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/HighlightPlus/Runtime/Scripts/HighlightTrigger.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Assets/HighlightPlus/Runtime/Scripts/HighlightTrigger.cs b/Assets/HighlightPlus/Runtime/Scripts/HighlightTrigger.cs index 1b035b97..a8c12a15 100644 --- a/Assets/HighlightPlus/Runtime/Scripts/HighlightTrigger.cs +++ b/Assets/HighlightPlus/Runtime/Scripts/HighlightTrigger.cs @@ -303,15 +303,22 @@ namespace HighlightPlus { } void OnMouseEnter() { + if (isActiveAndEnabled && triggerMode == TriggerMode.ColliderEventsOnlyOnThisObject) { if (!CanInteract()) return; + Debug.Log("进入"); + hb.outline = 1; Highlight(true); } } void OnMouseExit() { + + if (isActiveAndEnabled && triggerMode == TriggerMode.ColliderEventsOnlyOnThisObject) { if (!CanInteract()) return; + Debug.Log("退出"); + hb.outline = 1; Highlight(false); } }