Welcome,
Guest
. Please
login
or
register
.
September 24, 2023, 09:56:22 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
How can I navigate through all my text fields with the "Next/done"?iOS/Android
« previous
next »
Print
Pages: [
1
]
Author
Topic: How can I navigate through all my text fields with the "Next/done"?iOS/Android (Read 1645 times)
tux83
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 4
How can I navigate through all my text fields with the "Next/done"?iOS/Android
«
on:
February 05, 2017, 12:56:07 PM »
Hi everyone, i have to create a subscription form for iOS/Android, but
How can I navigate through all my text fields with the "Next/done" Button on the iPhone/android Keyboard?
it's possibile?
thank you
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: How can I navigate through all my text fields with the "Next/done"?iOS/Android
«
Reply #1 on:
February 08, 2017, 08:25:50 AM »
Your UIInput will receive an OnSubmit notification you can subscribe to (UIInput.onSubmit). Simply select the next field in line.
using
UnityEngine
;
public
class
SelectNext
:
MonoBehaviour
{
public
GameObject next
;
void
Awake
(
)
{
var
input
=
GetComponent
<
UIInput
>
(
)
;
EventDelegate
.
Set
(
input
.
onSubmit
,
delegate
(
)
{
UICamera
.
selectedObject
=
next
;
}
)
;
}
}
Logged
tux83
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 4
Re: How can I navigate through all my text fields with the "Next/done"?iOS/Android
«
Reply #2 on:
February 09, 2017, 06:17:11 AM »
ok! but the keyboard is reset for each field .
I can change the label of it's done?("next", "connect").
thanks
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: How can I navigate through all my text fields with the "Next/done"?iOS/Android
«
Reply #3 on:
February 13, 2017, 11:29:00 AM »
I don't know about that. That's iOS, not NGUI.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
How can I navigate through all my text fields with the "Next/done"?iOS/Android