
Input Fields - The Unity UGUI Guide
A downloadable guide
The Unity UGUI Guide on
Input Fields
This 14-page guide leads you through everything you need to know about Unity’s Input Field component. We start by creating a TextMesh Pro Input Field in the hierarchy, go through it's component's setup (Placeholder and Text child elements, Control Settings, Unity Events), and learn how to capture input on submit by pressing enter and via button clicks. Illustrated examples show you how to set character limits, choose content types (Name, Email, Decimal, Password, Pin,...), toggle visibility of sensitive input, change the asterisk character, and customize the blinking caret .
This guide is full of example use cases, screenhsots and explanations from the basic set up all the way to creating a custom validator. By the end, you’ll have a robust understanding for handling any text-input scenario in your game .
Things you will learn:
- How to create and configure a
TMP_InputField
component in your Canvas - Capturing player input via
onSubmit
(Enter key) and button clicks - Setting character limits, content types (Standard, Name, Email, Decimal, Password, Pin), and restoring placeholders on ESC
- Toggling visibility for passwords and pins, and customizing the asterisk character
- Enabling or disabling rich-text editing and customizing the caret appearance
Handling different use cases: single-line vs. multi-line inputs, mobile keyboard types, and input validation with built-in and custom validator
Contains:
- 14-page PDF Guide with detailed chapters, tables, tons of images, and reusable code samples
- Link to Source Code on GitHub (MIT License)
- Unity Package including an example scene and all scripts, ready to import and experiment with (created in Unity 6, version 6000.0.4f1f)
Published | 6 hours ago |
Status | Released |
Category | Book |
Author | Christina Creates Games |
Tags | documentation, gamedev, Graphical User Interface (GUI), guide, Tutorial, ugui, Unity, unity3d |
Purchase
In order to download this guide you must purchase it at or above the minimum price of $4.25 USD. You will get access to the following files:
Leave a comment
Log in with itch.io to leave a comment.