Revised the Curly UI fix as it was preventing the graphic from being updated in the scene view. Thanks to @solidsign for the update.

pull/413/head
Simon Jackson 2023-01-22 10:40:29 +00:00
parent 78d3b898c1
commit c41b4af0e3
1 changed files with 2 additions and 7 deletions

View File

@ -285,15 +285,10 @@ namespace UnityEngine.UI.Extensions
}
}
public void Refresh()
{
StartCoroutine(RefreshOnNextFrame());
}
public void Refresh() { Invoke(nameof(Refreshx), 0.3f); }
public IEnumerator RefreshOnNextFrame()
private void Refreshx()
{
yield return new WaitForEndOfFrame();
ReportSet();
// we use local position as the true value. Ratio position follows it, so it should be updated when refresh