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 Types

enum QuitGameButtonMethod#

Specifies the user interaction methods available for a UIButtonQuitGame.

Values:

enumerator HoverEnter#

Quit on hover enter.

enumerator HoverExit#

Quit on hover exit.

enumerator Click#

Quit on hover click.

Public Members

QuitGameButtonMethod quitMethod = QuitGameButtonMethod.Click#

Will quit the game based on the QuitGameButtonMethod.

bool logQuit#

Will output a Debug.Log(object) when quitting the application.