Join Jesse Freeman for an in-depth discussion in this video Creating an input field, part of Unity 5: UI.
- Now it's time to cover our final component,…the Input field.…In our canvas, let's create a new Input field.…Next, we'll drag it up to the top…so it's a little easier to work with.…The Input field has all the same properties…as our other components.…The biggest difference here,…is that our Input field is actually…made up of two separate text fields.…If we take a look at it on the inside,…you'll see there's a place holder text,…in the actual text where you input a value.…
You can see that our text component is set…in the text component field.…There's a text field that represents the text…that gets inputted into it.…You can give it a character limit,…and you can also change the content type…from standard to several other options…such as auto-correct, numbers,…letters, e-mails, etc.…There's also line type,…so you can make it multi-line with submit,…and multi-line new line.…
You'll also see a reference to the placeholder text.…If you want to change the placeholder text,…simply select it and enter in the text you want it to say.…
- Adding new components to the Canvas
- Working with RectTransforms
- Nesting UI elements
- Adding rich text and effects to the UI
- Creating images
- Styling UI buttons
- Handling input
- Creating sliders
- Controlling the layout of the screen
- Adding toggles and dropdowns
Skill Level Intermediate
1. The Canvas
2. Working with the RectTransform
3. Working with Text
4. Working with Images
5. Working with Buttons
6. Handling UI Input
7. Working with a Slider
8. Controlling Layout
9. Toggles, Dropdowns, and the Input Field
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.