Page 1 of 1

[HOWTO] How To: Workaround Unity Bug in List Inspector

Posted: Sun May 02, 2021 8:53 am
by Tony Li
Unity versions 2020.3 - 2021 have an editor bug that draws lists incorrectly in the inspector. It's already been reported to Unity.

You may see it when editing Custom Lua Function Info assets or your own scripts that include nested lists:

unityDefaultEditorBug.png
unityDefaultEditorBug.png (21.76 KiB) Viewed 784 times

A temporary workaround for CustomLuaFunctionInfo is to edit Assets / Plugins / Pixel Crushers / Dialogue System / Scripts / Utility / CustomLuaFunctionInfo.cs. Swap the order of these two lines:

unityDefaultEditorBugWorkaround.png
unityDefaultEditorBugWorkaround.png (84.08 KiB) Viewed 784 times