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