InputField

More information can be found in the Unity API Reference

Members

Member

Description

animator

asteriskChar

caretBlinkRate

caretColor

caretPosition

caretWidth

characterLimit

customCaretColor

flexibleHeight

flexibleWidth

gameObject

image

interactable

isFocused

layoutPriority

minHeight

minWidth

multiLine

preferredHeight

preferredWidth

readOnly

selectionAnchorPosition

selectionColor

selectionFocusPosition

shouldActivateOnSelect

shouldHideMobileInput

text

textComponent

transform

wasCanceled

Events

Event

Description

onEndEdit

Arguments: string value

onPointerClick

onPointerDown

onPointerEnter

onPointerExit

onPointerUp

onValueChanged

Arguments: string value

Methods

Method

Description

ActivateInputField()

CalculateLayoutInputHorizontal()

CalculateLayoutInputVertical()

DeactivateInputField()

ForceLabelUpdate()

GraphicUpdateComplete()

IsActive()

IsDestroyed()

IsInteractable()

LayoutComplete()

MoveTextEnd(shift)

MoveTextStart(shift)

Select()

SetTextWithoutNotify(input)

ToString()

Static members

Member

Description

allSelectableCount

Details

class InputField
const Animator animator
Char asteriskChar
float caretBlinkRate
Color caretColor
int caretPosition
int caretWidth
int characterLimit
bool customCaretColor
const float flexibleHeight
const float flexibleWidth
const GameObject gameObject
Image image
bool interactable
const bool isFocused
const int layoutPriority
const float minHeight
const float minWidth
const bool multiLine
const float preferredHeight
const float preferredWidth
bool readOnly
int selectionAnchorPosition
Color selectionColor
int selectionFocusPosition
bool shouldActivateOnSelect
bool shouldHideMobileInput
string text
Text textComponent
const Transform transform
const bool wasCanceled
const ScriptEvent onEndEdit

Callback Signature:

void callback()

Arguments: string value

const ScriptEvent onPointerClick

Callback Signature:

void callback()
const ScriptEvent onPointerDown

Callback Signature:

void callback()
const ScriptEvent onPointerEnter

Callback Signature:

void callback()
const ScriptEvent onPointerExit

Callback Signature:

void callback()
const ScriptEvent onPointerUp

Callback Signature:

void callback()
const ScriptEvent onValueChanged

Callback Signature:

void callback()

Arguments: string value

void ActivateInputField()
void CalculateLayoutInputHorizontal()
void CalculateLayoutInputVertical()
void DeactivateInputField()
void ForceLabelUpdate()
void GraphicUpdateComplete()
bool IsActive()
bool IsDestroyed()
bool IsInteractable()
void LayoutComplete()
void MoveTextEnd(bool shift)
void MoveTextStart(bool shift)
void Select()
void SetTextWithoutNotify(string input)
string ToString()
static const int allSelectableCount