Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Bug Batch-mode Build Error: Type has an extra field and thus can't be serialized

Discussion in 'Editor & General Support' started by tmtmazum, Mar 7, 2024.

  1. tmtmazum

    tmtmazum

    Joined:
    Jul 15, 2023
    Posts:
    1
    Hi,

    We're getting the following error while trying to do a batch mode (command-line) build with Unity LTS 2022.3.4f1, wonder if there is any way to get around it?

    Type 'X' has an extra field 'y' of type 'System.String' in the player and thus can't be serialized 


    From some searching it seems others have encountered similar errors intermittently and that it is a known unity bug. For us its happening consistently in one of our machines when triggering the build from command-line with batch mode. Building from the Editor on the other hand with the same configuration everything builds ok.

    Thank you,