When I use an array, it breaks the fields in the Inspector and throws errors. I tested it on different Unity 6+ versions and devices, and the same issue happens everywhere — the fields in the Inspector disappear.
If anyone has faced this, please tell me how to fix it or what could be the problem.
Example error: UnityException: GetName can only be called from the main thread.
You are probably trying to get the “name” property of an object in “onvalidate” or during serialization callbacks in a custom inspector. Please provide the inspector code
Pretty sure there’s been multiple threads about this. It’s an engine issue in Unity 6.
An error occurs when serializing an array.
[SerializeField] private int[] _test;
Is there a solution for this or is there nothing we can do about it? if we need an array of Transforms we are just out of luck? i am on 6000.2.6f2.
There are 2 workarounds from around the discussion:
Option 1: In “Preferences > General”, set “Editor Font” to “System Font” instead of “Inter”.
Option 2: In “Project Settings > Editor”, set “Use IMGUI Default Inspector” to true.
thank you! i will give those a try as soon as i get back to the office
Option 3: Reset or save and reload your layout in “Window > Layouts”.
Option 4: The latest version (6000.2.7f2) was released today and fixes the issue ![]()
