Fix the handle of the slider disappearing permanently after an abnormal range is assigned.
This commit is contained in:
@@ -112,6 +112,7 @@ namespace Cryville.Crtr.Config {
|
|||||||
protected void SetRatio(float ratio) {
|
protected void SetRatio(float ratio) {
|
||||||
m_handle.rectTransform.anchorMin = new Vector2(ratio, m_handle.rectTransform.anchorMin.y);
|
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.anchorMax = new Vector2(ratio, m_handle.rectTransform.anchorMax.y);
|
||||||
|
m_handle.rectTransform.anchoredPosition = Vector2.zero;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user