- Home /
m_TransformInfo.localAABB.IsValid()
I'm having some problems with errors since i made a rather complex new menu with UI elements
The errors are
seven of each, these appear whenever i END play mode, and return to editor mode.
Here's the setup i have
StatsPanelCanvas contains the window seen on the left, with the buttons and text in it. The Stats button in the upper right of the game window shows or hides the statspanelcanvas. It does this by setting its scale to 0,0,0 to hide it, and back to 1,1,1 to show it. (as well as setting its alpha to 0) This is the main transforming that i'm wodnering about.
Aside from that, the menu itself resizes dependant on the content, it is shown above in the minimum possible (non hidden) size.
For example
Also shown here; the panel dynamically generates lots of text objects as needed, to display the text content. I only create these once and stick them in a pool, then reuse them (and generate more only if called on to display a larger amount of content)
Disabling the StatsPanelCanvas makes the error go away. And sometimes after re-enabling it, the error doesn't immediately return, and it seems fixed. But it will always come back eventually (after restarting the unity client i think, though unsure.)
I need some help! Whats causing this, how can i prevent or fix it