public override void Init(VisualElement ve, IUxmlAttributes bag, CreationContext cc) { base.Init(ve, bag, cc); TextInputFieldBase <T> field = ((TextInputFieldBase <T>)ve); field.maxLength = m_MaxLength.GetValueFromBag(bag); field.isPasswordField = m_Password.GetValueFromBag(bag); string maskCharacter = m_MaskCharacter.GetValueFromBag(bag); if (maskCharacter != null && maskCharacter.Length > 0) { field.maskChar = maskCharacter[0]; } }
protected TextEditorEventHandler(TextEditorEngine editorEngine, TextInputFieldBase textInputField) { this.editorEngine = editorEngine; this.textInputField = textInputField; this.textInputField.SyncTextEngine(); }
public TouchScreenTextEditorEventHandler(TextEditorEngine editorEngine, TextInputFieldBase textInputField) : base(editorEngine, textInputField) { this.secureText = string.Empty; }
public KeyboardTextEditorEventHandler(TextEditorEngine editorEngine, TextInputFieldBase textInputField) : base(editorEngine, textInputField) { }
public TextEditorEngine(TextInputFieldBase field) { this.textInputField = field; }