Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Inspector doesn't draw List elements

Discussion in 'Editor & General Support' started by shieldgenerator7, Dec 18, 2021.

  1. shieldgenerator7

    shieldgenerator7

    Joined:
    Dec 20, 2015
    Posts:
    39
    Im using 2021.2.7f1 which is the latest version at the time of writing.
    It's drawing lists incorrectly, here's an example of a List of a custom ScriptableObject subtype, Color, and string:
    View attachment 974160
    View attachment 974163

    Interestingly, when you click on one of the elements in the list, it shows up while you hold down LMB. When you let go, it disappears again. It doesn't let you edit the element at all.

    The only fix Ive found is downgrading to Unity 2020, which Id prefer not to have to do. Anybody found any solution to this?
     
    pooba253 likes this.
  2. pooba253

    pooba253

    Joined:
    Dec 7, 2020
    Posts:
    2
    Same exact issue, using version 2021.1.28f1

    Troubling thing is that nobody else on my team is having this issue, and we're all on the same version
     
  3. pooba253

    pooba253

    Joined:
    Dec 7, 2020
    Posts:
    2
    Turns out this is caused by having Unity open in a secondary monitor, it works fine when I move the window into the primary monitor. This is also supposedly fixed in 2021.2.8 but I haven't verified for myself.
     
  4. shieldgenerator7

    shieldgenerator7

    Joined:
    Dec 20, 2015
    Posts:
    39
    I just tried it in Unity 2021.2.10f1 and it works now
     
  5. SarperS

    SarperS

    Joined:
    Mar 10, 2009
    Posts:
    823
    2021.3.16f1, inspector shows 0 elements on generic list but I'm 100% certain there are elements in the list and I can see them while debugging in Visual Studio and also with Debug.Log's :/
     
  6. SarperS

    SarperS

    Joined:
    Mar 10, 2009
    Posts:
    823
    Turns out a totally irellevant class was calling it's OnValidate every single frame and that somehow blocked inspector from refreshing... don't know why it would happen as it's as I've said a totally irellevant small class that is not being renderer in the inspector unless selected.