Example #1
0
 public static void AddVector3Field(string label, out UITextField[] fieldArray, UIHelperExtension parentHelper, Action <Vector3> onChange)
 {
     fieldArray = parentHelper.AddVector3Field(label, Vector3.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;
 }