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); }
public static void Apply(InputFieldStyleData style, UIReference <InputField> field) => ApplyStyle(style, field, applyInputField);