Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: PoL on February 12, 2014, 11:43:14 AM
Title:
UIInput.inputType change at runtime
Post by:
PoL
on
February 12, 2014, 11:43:14 AM
When I change the field
UIInput.inputType
at runtime, it does't update the label text.
To update the label I need to do something like this:
inputPassword
.
inputType
=
show
?
UIInput
.
InputType
.
Standard
:
UIInput
.
InputType
.
Password
;
string
v
=
inputPassword
.
value
;
inputPassword
.
value
=
v
.
Length
==
0
?
" "
:
""
;
inputPassword
.
value
=
v
;
Better solution for this could be making the method
UIInput.UpdateLabel()
public or replacing the field UIInput.inputType with a propertie.
Title:
Re: UIInput.inputType change at runtime
Post by:
ArenMook
on
February 13, 2014, 12:55:57 AM
Fair enough, I will make it public.