Search Unity

Bug Arrays inside custom classes rendering not properly in inspector

Discussion in 'Editor & General Support' started by Limofeus, Apr 16, 2021.

  1. Limofeus

    Limofeus

    Joined:
    Feb 12, 2019
    Posts:
    33
    BrokenInspector.gif
    So basically if you have an array inside an array of custom classes it will render underneath other variables in inspector (see .gif on top).
    In my example i have 'hordes' variable as an array of custom 'horde' classes which have 'monsterTypes' and 'npcLines' arrays inside of them like so:
    devenv_jkux91yrHk.png
    And when i expand monsterTypes array it expands the variable box but does not move variables down like it should.
    I am using latest LTS version for this project, more accurately: Unity version 2020.3.4f1
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,288
    Hi,
    Could you please file a bug report?
    I did file one for a similar issue the other day but it may be different so always good to get another bug report :)
     
  3. Limofeus

    Limofeus

    Joined:
    Feb 12, 2019
    Posts:
    33
  4. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,288
    Limofeus likes this.