Skip to content

InputField ​

UIScripts: InputFieldComponentFeature: UI Controls (≈35 KB)

Optional feature

InputField is part of UI Controls. A build includes it only when a scene, prefab or script uses it — see Feature cropping.

From a script ​

ts
import { InputFieldComponent } from "mmpx";

const inputField = this.entity.TryGetComponent(InputFieldComponent);

Full API: InputFieldComponent.

Fields ​

FieldTypeDefaultDescription
Interactable
interactable
booleantrue
Text
text
string—
Placeholder
placeholder
string"Enter text..."
Text Label
textLabel
Entity—The Text entity that shows the value
Placeholder Label
placeholderLabel
Entity—The Text entity shown while the field is empty
Content Type
contentType
"standard" | "integer" | "decimal" | "alphanumeric" | "email" | "password" | "pin""standard"What the field accepts — also picks the mobile keyboard
Multiline
multiline
booleanfalseEnter adds a line instead of submitting
Character Limit
characterLimit
number (0 … ∞)00 = no limit
Return Key
returnKey
"default" | "done" | "go" | "next" | "search" | "send""default"The return key label on mobile keyboards

© 2026 PlayAdGentic