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

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Tony Li
Posts: 22163
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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 793 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 793 times
Post Reply