UIButtonDebugLogs

Contents

UIButtonDebugLogs#

NAMESPACE:

UnityUtils.ScriptUtils.UI

Usage#

Add a ‘UIButtonDebugLogs’ Script to a UI button and edit the Booleans to your needs, will output a different Debug.Log for hover, hover exit, and click.

Functions#

UnityUtils.ScriptUtils.UI.UIButtonDebugLogs : MonoBehaviour , IPointerEnterHandler , IPointerExitHandler , IPointerClickHandler

Public Members

bool logHover = true#

Will output a Debug.Log when the button is hovered over.

bool logExit = true#

Will output a Debug.Log when the button’s hover is exited.

bool logClick = true#

Will output a Debug.Log when the button is clicked.