Search Unity

Unity 2021.3.4 Editor UI overlapping because of serialized structs

Discussion in 'Immediate Mode GUI (IMGUI)' started by skilani, Jun 20, 2022.

  1. skilani

    skilani

    Joined:
    Aug 31, 2013
    Posts:
    7
    Recently updated from 2020.3, and my editor now seems to have this issue:


    The problem seems to be custom Serializable Struct. Like so:

    Code (CSharp):
    1. [System.Serializable]
    2. public struct BreaksEditor {
    3.     public int sprite;
    4.     public int type;
    5. }
    6. public BreaksEditor[] skins;
    7.  

    Experimenting it doesn't seem to matter what is in the serialized struct, the Editor UI gets borked either way.

    Anyone else run into this?
     
  2. skilani

    skilani

    Joined:
    Aug 31, 2013
    Posts:
    7