Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    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:
    6,195
    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?