Fix the handle of the slider disappearing permanently after an abnormal range is assigned.

This commit is contained in:
2023-08-02 17:30:20 +08:00
parent 9044631fe7
commit af01fb2119

View File

@@ -112,6 +112,7 @@ namespace Cryville.Crtr.Config {
protected void SetRatio(float ratio) {
m_handle.rectTransform.anchorMin = new Vector2(ratio, m_handle.rectTransform.anchorMin.y);
m_handle.rectTransform.anchorMax = new Vector2(ratio, m_handle.rectTransform.anchorMax.y);
m_handle.rectTransform.anchoredPosition = Vector2.zero;
}
}
}