Skip to content

Commit 05682c7

Browse files
authored
Add SetXWithoutNotify and SetYWithoutNotify to BoxSlider
Adds functions to set the X and Y values without calling OnValueChanged
1 parent 855607a commit 05682c7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Runtime/Scripts/Controls/Sliders/BoxSlider.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,5 +367,14 @@ public virtual void OnInitializePotentialDrag(PointerEventData eventData)
367367
eventData.useDragThreshold = false;
368368
}
369369

370+
public void SetXWithoutNotify(float x)
371+
{
372+
SetX(x, false);
373+
}
374+
375+
public void SetYWithoutNotify(float y)
376+
{
377+
SetY(y, false);
378+
}
370379
}
371380
}

0 commit comments

Comments
 (0)