Revised the Curly UI fix as it was preventing the graphic from being updated in the scene view. Thanks to @solidsign for the update.
parent
78d3b898c1
commit
c41b4af0e3
|
@ -285,15 +285,10 @@ namespace UnityEngine.UI.Extensions
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Refresh()
|
public void Refresh() { Invoke(nameof(Refreshx), 0.3f); }
|
||||||
{
|
|
||||||
StartCoroutine(RefreshOnNextFrame());
|
|
||||||
}
|
|
||||||
|
|
||||||
public IEnumerator RefreshOnNextFrame()
|
private void Refreshx()
|
||||||
{
|
{
|
||||||
yield return new WaitForEndOfFrame();
|
|
||||||
|
|
||||||
ReportSet();
|
ReportSet();
|
||||||
|
|
||||||
// we use local position as the true value. Ratio position follows it, so it should be updated when refresh
|
// we use local position as the true value. Ratio position follows it, so it should be updated when refresh
|
||||||
|
|
Loading…
Reference in New Issue