Work Around For "FIRST ARRAY ELEMENT EXPANSION IS BROKEN" Bug

Hey guys,

Much like a lot of you, I’ve run into the bug where the first element in an array or list in the inspector is broken and won’t let you edit it properly. However, I believe I’ve found a work around people can use until this bug is fixed.

I found that this bug doesn’t appear if you are using a custom inspector. Now, some of you might not want to make a custom inspector, or might not be at the stage where you want to implement custom inspectors, but the good news is this works even if all you do is import the Default Inspector into your custom inspector.

Unity already has documentation on how to create this so I’ll just link it here: Unity - Manual: Create a Custom Inspector

Unfortunately any Attributes you use (such as the [Header] attribute) won’t show up but I figure that’s better than not being able to edit the first property in your arrays/lists.

Hopefully this is helpful for some of you guys, and hopefully Unity fixes this issue the LTS versions soon!

I made mine NonReorderable, which also works

3 Likes

Oh, that is good to know, a lot less work if you don’t need the reorderable functionality intact.

1 Like

Any news on the fixes though? Non-reordarable is not ideal (because um no reordering), and custom inspector is a lot of work for every list — though it’s nice to know in case bug won’t be fixed soon, thanks!

One other obvious thing that you can do is just reorder the first element to be the second one, edit it, and then reorder back.

1 Like

I think it’s fixed in the alpha and 2022 tech stream, with 2021 LTS being planned for release (hopefully next release)

Fixed in 2021.3.5f1