StackOverflowException with DisplayPanel and MainMenu

zankievit

New member
When I call this once I get a StackOverflowException.
Code:
displayPanelManager.TogglePanel("Main Menu");

Looking at the error it seems to loop between DisplayPanel.OpenInternal() and MainMenu.OpenSubPanel().
1776176560865.png

UIS version 1.3.6
Unity 6.4.1f1
 
Thank you for reporting this.
This does not quite make sense to me. Is it possible you've set a panel as it's own subpanel in the inspector?
I can't think of another way this could be happening.

Are you able to replicate this issue in a demo scene or new scene so that I can replicate it on my machine?
 
Huh, I'm using the default setup for testing. So I was sure it had to be in the code.
But somehow the main menu display panel was assigned as a sub panel in the place of the Inventory one..
No more errors now with that obvious fix. Thanks for making me look there, because I would not have found that any time soon lol
 
Back
Top