コード例 #1
0
        private static void ApplyInputFieldStyle <T>(InputFieldStyleData style, UIReference <T> reference)
            where T : InputField
        {
            reference.value.caretBlinkRate = style.caretBlinkRate;
            reference.value.caretWidth     = style.caretWidth;
            reference.value.selectionColor = style.selectionColor;

            // use custom caret color if property set
            reference.value.customCaretColor = style.caretColor.IsResolved;

            ApplySelectableStyle(style, reference);
        }
コード例 #2
0
 public static void Apply(InputFieldStyleData style, UIReference <InputField> field) =>
 ApplyStyle(style, field, applyInputField);