Add SetXWithoutNotify and SetYWithoutNotify to BoxSlider

Adds functions to set the X and Y values without calling OnValueChanged
pull/472/head
Kurante 2024-04-19 18:07:33 +02:00 committed by GitHub
parent 855607ab67
commit 05682c7dd9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 0 deletions

View File

@ -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);
}
}
}