You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Something with using the custom GetScreenCoordinates() function in CompareTo() messes with Tab navigation due to bad sort().
I replaced the original CompareTo() function with:
// Get screen space coordinates for both WebGLInput objects, then prioritize by Y-coord, then by X-coord.
public int CompareTo(WebGLInput other)
{
var a = Camera.main.WorldToScreenPoint(input.RectTransform().position);
var b = Camera.main.WorldToScreenPoint(other.input.RectTransform().position);
var res = b.y.CompareTo(a.y);
if (res == 0) res = a.x.CompareTo(b.x);
return res;
}
Not sure if this messes something else up, but my Tab navigation is working perfectly now.
The text was updated successfully, but these errors were encountered:
Something with using the custom
GetScreenCoordinates()
function inCompareTo()
messes with Tab navigation due to badsort()
.I replaced the original
CompareTo()
function with:Not sure if this messes something else up, but my Tab navigation is working perfectly now.
The text was updated successfully, but these errors were encountered: