Search Unity

  1. How can our website serve you better? Give us your feedback. Take our survey and let us know.
    Dismiss Notice

GUI is regenerating custom inspector classes every few seconds since 2020.2.6

Discussion in 'Immediate Mode GUI (IMGUI)' started by Jaimi, Mar 11, 2021.

  1. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    5,760
    Users are reporting that dropdowns no longer stay open, and popups reset.
    I've traced this down to something wacky in the handling of editors.

    Unity appears to be recreating them (and thus resetting any private variables) every few seconds. This is really strange. To test this theory, I added a C# constructor, and when the variables get reset, guess what happens right before that?

    Anyone else having issues with this?
     
unityunity