コード例 #1
0
            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];
                }
            }
コード例 #2
0
 protected TextEditorEventHandler(TextEditorEngine editorEngine, TextInputFieldBase textInputField)
 {
     this.editorEngine   = editorEngine;
     this.textInputField = textInputField;
     this.textInputField.SyncTextEngine();
 }
コード例 #3
0
 public TouchScreenTextEditorEventHandler(TextEditorEngine editorEngine, TextInputFieldBase textInputField) : base(editorEngine, textInputField)
 {
     this.secureText = string.Empty;
 }
コード例 #4
0
 public KeyboardTextEditorEventHandler(TextEditorEngine editorEngine, TextInputFieldBase textInputField) : base(editorEngine, textInputField)
 {
 }
コード例 #5
0
 public TextEditorEngine(TextInputFieldBase field)
 {
     this.textInputField = field;
 }