UIButtonQuitGame

Contents

UIButtonQuitGame#

NAMESPACE:

UnityUtils.ScriptUtils.UI

Usage#

Add a ‘UIButtonQuitGame’ Script to a UI button and it will quit the game on click by default. You can customize what action will cause the game to quit as your needs suit.

Functions#

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

Public Members

bool hoverQuit#

Will quit the application on hover.

bool exitQuit#

Will quit the application on hover exit.

bool clickQuit = true#

Will quit the application on click.