Unity3d NGUI usage (6) (UIInput & amp; use of multiple uicheckboxes)

Source: Internet
Author: User

UIInput: user input box. You can enter lattice content, such as password and user name.

UICheckBox: check box


UIInput: Select UIInput In the Widget Tool, select a background image, and add it to the window panel.

After adding, there are three objects: Input, Background, and Label.

Input: the main control that you click to enter


Box Collider: Enter the monitoring area after clicking

UIInput (Script ):

Starting Value: the word that is displayed in the input box.

Saved As: Save the input content to prefabs.

Active TextColor: The color displayed after the text box is activated

Inactive Color: default status Color

Caret Color: The Color of the inserted characters.

Selection Color: select the Color of Characters in the status

Input Type: the Input Type (standard) standard, (AutoCorrect) automatic correction, (Password) Password

Keyboard Type: the Keyboard Type of the mobile platform.

Validation: input type Restriction

Character Limit: Maximum number of input characters

On Submit: Event distribution after input

On Change: Event distribution when input characters Change

Then there is a UISprite & UILabe


UICheckBox:

Add several Toggle


Group: A single-choice Group. When multiple checkboxes need to be selected, they must be defined in the same Group.

Starting State: default State of the radio group (which one is selected by default)

State Transition: Picture and animation options during State Transition

Sprite: Images in the selected status

Animation: Play an Animation when the Animation is selected

Transition: The effect of Transition from unselected to selected (Smooth, Smooth Transition & Instant, directly replaced)

OnValueChange: Event distribution when the event changes


There is a UIButton Scale (Script): Play the Tween animation option when you click it.

Script: Script of the Tween animation function

Tween Target: Specifies the animation Target.

Hover: the animation that is played when the mouse stays above

Pressed: the animation played when the video is Pressed.

Duration: animation Duration


UIPlay Sound Script: Playing Sound when a user clicks



Unity3d NGUI usage (6) (UIInput & use of multiple uicheckboxes)


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.