diff --git a/Source/Engine/UI/GUI/Common/Button.cs b/Source/Engine/UI/GUI/Common/Button.cs index 190ba8eff..30ff25aa1 100644 --- a/Source/Engine/UI/GUI/Common/Button.cs +++ b/Source/Engine/UI/GUI/Common/Button.cs @@ -75,7 +75,7 @@ namespace FlaxEngine.GUI /// Event fired when users mouse enters the control. /// public event Action HoverBegin; - + /// /// Event fired when users mouse leaves the control. /// @@ -246,6 +246,7 @@ namespace FlaxEngine.GUI public override void OnMouseEnter(Float2 location) { base.OnMouseEnter(location); + HoverBegin?.Invoke(); } @@ -256,7 +257,7 @@ namespace FlaxEngine.GUI { OnPressEnd(); } - + HoverEnd?.Invoke(); base.OnMouseLeave();