Learn / Documentation / Script Reference / UIButtonListener
Manual

UIButtonListener

class in Doozy.Engine.UI / Inherits from MonoBehaviour

Description

The UIButtonListener class implements a microphone-like device, that interprets UIButton UIButtonBehaviorType. When triggered it executes a set of callbacks and sends any defined game events.

Public Variables

  • public string ButtonCategoryUIButton Button Category filter that will invoke this listener’s events

  • public string ButtonNameUIButton Button Name filter that will invoke this listener’s events

  • public bool DebugMode – Enables relevant debug messages to be printed to the console

  • public UIButtonEvent EventUnityEvent invoked when this listener has been triggered

  • public bool ListenForAllUIButtons – If TRUE, this listener’s events will get invoked every time an UIButton is activated

  • public UIButtonBehaviorType TriggerAction – The action that an UIButton performs in order for this listener’s events to get invoked