InputField-Property

InputField输入框,作用当然是用来接受用户输入的了

Interaction 是否可交互

Transition 过度效果

TextComponent 用来承载输入文本的TextUI

Text TextUI的Text脚本的text属性的内容(玩家输入的文本)

Character Limit 输入字符个数限制,0不限制

Content Type 输入的类型

  1. Standard 所有字符

  2. Autocorrected 自动类型

  3. Integer Number 整数类型

  4. Decimal Number 浮点类型

  5. Alphanumeric 字母和数字

  6. Email Address 邮箱地址

  7. Password 密码,字符显示为*

  8. Pin 只能输入数字的密码*

Line Type 单行或多行

Placeholder 提示输入文本的TextUI

Caret Blink Rate 光标的跳动速度

Caret Width 光标的宽度

Custom Caret Color 自定义光标的颜色

Selection Color 输入框文本被选中时的背景颜色

Read Only 是否只读


首页 我的博客
粤ICP备17103704号