Show / Hide Table of Contents

Class InputField

A Selectable<T> that represents UnityEngine.UI.InputField.

Inheritance
Object
Selectable<UnityEngine.UI.InputField>
InputField
Inherited Members
Selectable<UnityEngine.UI.InputField>.InteractableProperty
Selectable<UnityEngine.UI.InputField>.TargetGraphicProperty
Selectable<UnityEngine.UI.InputField>.TransitionProperty
Selectable<UnityEngine.UI.InputField>.ColorsProperty
Selectable<UnityEngine.UI.InputField>.SpriteStateProperty
Selectable<UnityEngine.UI.InputField>.AnimationTriggersProperty
Selectable<UnityEngine.UI.InputField>.NavigationProperty
Selectable<UnityEngine.UI.InputField>.Interactable
Selectable<UnityEngine.UI.InputField>.TargetGraphic
Selectable<UnityEngine.UI.InputField>.Transition
Selectable<UnityEngine.UI.InputField>.Colors
Selectable<UnityEngine.UI.InputField>.SpriteState
Selectable<UnityEngine.UI.InputField>.AnimationTriggers
Selectable<UnityEngine.UI.InputField>.Navigation
Selectable<UnityEngine.UI.InputField>.AddToInMainThread(UnityEngine.GameObject)
Namespace: Mux.Markup
Assembly: Mux.Markup.UI.dll
Syntax
public class InputField : Selectable<UnityEngine.UI.InputField>
Examples
<m:RectTransform
    xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:m="clr-namespace:Mux.Markup;assembly=Mux.Markup"
    xmlns:mu="clr-namespace:Mux.Markup;assembly=Mux.Markup.UI"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:playgroundMarkup="clr-namespace:Mux.Playground.Markup;assembly=Assembly-CSharp">
    <!--
      Note that you can use "using" scheme instead of "clr-namespace" to omit assembly
      specification if:
      - the referenced type is in an assembly already loaded. (interpreter)
      - the referenced type is in the assembly containing the compiled XAML. (compiler)
    -->
    <mu:StandaloneInputModule />
    <mu:Canvas />
    <mu:CanvasScaler UiScale="{mu:ConstantPhysicalSize}" />
    <mu:GraphicRaycaster />
    <mu:InputField x:Name="inputField" LineType="MultiLineNewline">
        <mu:InputField.Text>
You have to give property name "Path" to Binding and "Name" to x:Reference
only when you compile the interpreter with IL2CPP.
It is because ContentPropertyAttribute does not work with IL2CPP.
        </mu:InputField.Text>
    </mu:InputField>
    <mu:Image
        Body="{Binding Path=Placeholder, Source={x:Reference Name=inputField}}"
        Color="{m:Color R=0, G=0, B=1}" />
    <playgroundMarkup:TextTransform
        TextComponent="{Binding Path=TextComponent, Source={x:Reference Name=inputField}}"
        X="{m:Stretch}"
        Y="{m:Stretch}" />
</m:RectTransform>

Fields

| Improve this Doc View Source

CaretBlinkRateProperty

Backing store for the CaretBlinkRate property.

Declaration
public static readonly BindableProperty CaretBlinkRateProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

CaretColorProperty

Backing store for the CaretColor property.

Declaration
public static readonly BindableProperty CaretColorProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

CaretWidthProperty

Backing store for the CaretWidth property.

Declaration
public static readonly BindableProperty CaretWidthProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

CharacterLimitProperty

Backing store for the CharacterLimit property.

Declaration
public static readonly BindableProperty CharacterLimitProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

CharacterValidationProperty

Backing store for the CharacterValidation property.

Declaration
public static readonly BindableProperty CharacterValidationProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

ContentTypeProperty

Backing store for the ContentType property.

Declaration
public static readonly BindableProperty ContentTypeProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

CustomCaretColorProperty

Backing store for the CustomCaretColor property.

Declaration
public static readonly BindableProperty CustomCaretColorProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

HideMobileInputProperty

Backing store for the HideMobileInput property.

Declaration
public static readonly BindableProperty HideMobileInputProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

InputTypeProperty

Backing store for the InputType property.

Declaration
public static readonly BindableProperty InputTypeProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

KeyboardTypeProperty

Backing store for the KeyboardType property.

Declaration
public static readonly BindableProperty KeyboardTypeProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

LineTypeProperty

Backing store for the LineType property.

Declaration
public static readonly BindableProperty LineTypeProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

PlaceholderProperty

Backing store for the Placeholder property.

Declaration
public static readonly BindableProperty PlaceholderProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

ReadOnlyProperty

Backing store for the ReadOnly property.

Declaration
public static readonly BindableProperty ReadOnlyProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

SelectionColorProperty

Backing store for the SelectionColor property.

Declaration
public static readonly BindableProperty SelectionColorProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

TextComponentProperty

Backing store for the TextComponent property.

Declaration
public static readonly BindableProperty TextComponentProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

TextProperty

Backing store for the Text property.

Declaration
public static readonly BindableProperty TextProperty
Field Value
Type Description
BindableProperty

Properties

| Improve this Doc View Source

CaretBlinkRate

A property that represents UnityEngine.UI.InputField.caretBlinkRate.

Declaration
public float CaretBlinkRate { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

CaretColor

A property that represents UnityEngine.UI.InputField.caretColor.

Declaration
public UnityEngine.Color CaretColor { get; set; }
Property Value
Type Description
UnityEngine.Color
| Improve this Doc View Source

CaretWidth

A property that represents UnityEngine.UI.InputField.caretWidth.

Declaration
public int CaretWidth { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

CharacterLimit

A property that represents UnityEngine.UI.InputField.characterLimit.

Declaration
public int CharacterLimit { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

CharacterValidation

A property that represents UnityEngine.UI.InputField.characterValidation.

Declaration
public UnityEngine.UI.InputField.CharacterValidation CharacterValidation { get; set; }
Property Value
Type Description
UnityEngine.UI.InputField.CharacterValidation
| Improve this Doc View Source

ContentType

A property that represents UnityEngine.UI.InputField.contentType.

Declaration
public UnityEngine.UI.InputField.ContentType ContentType { get; set; }
Property Value
Type Description
UnityEngine.UI.InputField.ContentType
| Improve this Doc View Source

CustomCaretColor

A property that represents UnityEngine.UI.InputField.customCaretColor.

Declaration
public bool CustomCaretColor { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

HideMobileInput

A property that represents UnityEngine.UI.InputField.shouldHideMobileInput.

Declaration
public bool HideMobileInput { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

InputType

A property that represents UnityEngine.UI.InputField.inputType.

Declaration
public UnityEngine.UI.InputField.InputType InputType { get; set; }
Property Value
Type Description
UnityEngine.UI.InputField.InputType
| Improve this Doc View Source

KeyboardType

A property that represents UnityEngine.UI.InputField.keyboardType.

Declaration
public UnityEngine.TouchScreenKeyboardType KeyboardType { get; set; }
Property Value
Type Description
UnityEngine.TouchScreenKeyboardType
| Improve this Doc View Source

LineType

A property that represents UnityEngine.UI.InputField.lineType.

Declaration
public UnityEngine.UI.InputField.LineType LineType { get; set; }
Property Value
Type Description
UnityEngine.UI.InputField.LineType
| Improve this Doc View Source

Placeholder

A property that represents UnityEngine.UI.InputField.placeholder.

Declaration
public UnityEngine.UI.Graphic Placeholder { get; set; }
Property Value
Type Description
UnityEngine.UI.Graphic
See Also
Graphic<T>
| Improve this Doc View Source

ReadOnly

A property that represents UnityEngine.UI.InputField.readOnly.

Declaration
public bool ReadOnly { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

SelectionColor

A property that represents UnityEngine.UI.InputField.selectionColor.

Declaration
public UnityEngine.Color SelectionColor { get; set; }
Property Value
Type Description
UnityEngine.Color
| Improve this Doc View Source

Text

A property that represents UnityEngine.UI.InputField.text.

Declaration
public string Text { get; set; }
Property Value
Type Description
String
| Improve this Doc View Source

TextComponent

A property that represents UnityEngine.UI.InputField.textComponent.

Declaration
public UnityEngine.UI.Text TextComponent { get; set; }
Property Value
Type Description
UnityEngine.UI.Text
See Also
Text

Methods

| Improve this Doc View Source

AwakeInMainThread()

Declaration
protected override void AwakeInMainThread()

Events

| Improve this Doc View Source

OnEndEdit

An event that represents UnityEngine.UI.InputField.onEndEdit.

Declaration
public event UnityEngine.Events.UnityAction<string> OnEndEdit
Event Type
Type Description
UnityEngine.Events.UnityAction<String>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX