Add SetXWithoutNotify and SetYWithoutNotify to BoxSlider
Adds functions to set the X and Y values without calling OnValueChangedpull/472/head
parent
855607ab67
commit
05682c7dd9
|
@ -367,5 +367,14 @@ namespace UnityEngine.UI.Extensions
|
|||
eventData.useDragThreshold = false;
|
||||
}
|
||||
|
||||
public void SetXWithoutNotify(float x)
|
||||
{
|
||||
SetX(x, false);
|
||||
}
|
||||
|
||||
public void SetYWithoutNotify(float y)
|
||||
{
|
||||
SetY(y, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue