Closed hex closed 6 years ago
Hide()
already does this.
It doesn't work for a specific case. I modified the Simple Test scene for demonstrating the behavior.
Steps:
https://www.dropbox.com/s/hsd1b1qgy8eheuu/testCase.unitypackage?dl=0
Your're right, that doesn't look right at all. I must've messed up somewhere, gonna try to fix it.
I think it's related to the way that an element is removed from the list (screenQueue).
This is the stack state before I press go back:
and this is after I press go back:
It seems that it removes the first instance of that window from that list.
screenQueue.Remove(screenToKill)
Right when you sent me the message I stumbled upon that as well.
Making it remove the last one doesn't get rid of the problem though.
I found the issue and pushed the fix.
Thanks for notifying. This change might or might've not messed up hideCurrent functionality because I removed some strange looking code that looked really out of place, but I'm not sure though. I should've done some unit tests :'(
I will let you know if I discover anything weird. Thanks for acting so promptly!
I'll close this issue for now
Hi there, is there any back button functionality? Maybe it could go through the screen stack and show the previous screen.