How to add a UIBehaviour to a UIButton
About UIBehaviour
A UIBehaviour is a UI interaction that can be captured and made to trigger events.
The UIBehaviours are:
- PointerEnter
- PointerExit
- PointerDown
- PointerUp
- PointerClick
- PointerDoubleClick
- PointerLongClick
- PointerLeftClick
- PointerMiddleClick
- PointerRightClick
- Selected
- Deselected
- Submit
Add UIBehaviour
To add a UIBehaviour simply select it from the dropdown list and click ‘Add Behaviour’.
Note that for an UIBehaviour to work, it needs to be attached first.