Unity-UI-Extensions.GitHub.io

ReturnKeyTrigger

Enables you to bind the return key within an InputField control to a button, also supports toggling the highlight of a control or field.


Contents

1 Overview

2 Properties

3 Methods

4 Usage

5 Video Demo

6 See also

7 Credits and Donation

8 External links


Overview

If you want to enable a user to use the Return key on finishing entering in a field, the same as a web style control or Submit, this will enabling binding that action to a UI button (aka submit button). It also allows you to hind to a Highlight effect on the field (e.g. a red highlight for mandatory fields) which will enable/disable based on the submit action.


Usage

Either add the “ReturnKeyTrigger” component to an existing UI InputField control, or create an Empty GameObject and add the “ReturnKeyTrigger” component which will automatically add an Input field using the path below:


Video Demo

tbc


See also

N/A


Credits and Donation

Melang


N/A