public static void AddFloatField(string label, out UITextField field, UIHelperExtension parentHelper, Action <float> onChange, bool acceptNegative) { field = parentHelper.AddFloatField(label, 0, onChange, acceptNegative); field.width = 90; KlyteMonoUtils.LimitWidthAndBox(field.parent.GetComponentInChildren <UILabel>(), (parentHelper.Self.width / 2) - 10, true); field.eventMouseWheel += RollFloat; }