示例#1
0
 public static void AddVector4Field(string label, out UITextField[] fieldArray, UIHelperExtension parentHelper, Action <Vector4> onChange)
 {
     fieldArray = parentHelper.AddVector4Field(label, Vector4.zero, onChange);
     KlyteMonoUtils.LimitWidthAndBox(fieldArray[0].parent.GetComponentInChildren <UILabel>(), (parentHelper.Self.width / 2) - 10, true);
     fieldArray.ForEach(x =>
     {
         x.eventMouseWheel += RollFloat;
         x.tooltip          = Locale.Get("K45_CMNS_FLOAT_EDITOR_TOOLTIP_HELP");
     });
     fieldArray[0].zOrder = 1;
     fieldArray[1].zOrder = 2;
     fieldArray[2].zOrder = 3;
     fieldArray[3].zOrder = 4;
 }