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); } }