Error after build "different serialization" and others

I am running into a group of build errors that I can’t resolve. Upon launching the build on Windows 7, the following errors result:

There is no missing script from anywhere that can be found in the editor.
I’ve removed all the #if statements.
It works perfectly when played in the editor.

What appears to be important:
My project will instantiate 10 gameobjects I’m calling “Characters”. These objects are 2D animated characters each consisting of:

  • Base body with 2 scripts that are inactive (made active later in the game), sprite, animator with 14 animations
    – empty gameobject as a container to be moved called “Face”
    — Eyes gameobject with sprite and animator with 4 animations
    — Eyebrows gameobject with sprite and animator with 8 animations
    — Mouth gameobject with sprite and animator with 8 animations
    (*hyphen indicates child level)

If I remove 3 of these “Characters” from being instantiated, I have no error.

If I leave all 10 but remove one of the child gameobjects from each (such as removing “Mouth”), I have no error.

I’ve rebuilt my animations thinking that something was broken during construction to cause this.

I’m using the Windows version Pro Trial while I’m at home over the holiday to try and work on this project (in case this version has relevance).

What else could be causing this error to occur?

I’ll also mention that the speed at which the scripts are running don’t seem to play a part. I threw the instantiation into a coroutine and delayed it’s execution both from the start of the game as well as during execution and this played no part in the error. I still can’t launch the game due to the error (blank screen because scripts, either mine or from Unity, are missing).

hmmm… I just scaled ALL of my character source art to 1/2 the original size. Of course my characters are now too small and all the sprites need to be adjusted, BUT the error is gone.

Somehow this is a memory issue? The profiler on my Windows 7 build didn’t indicate a memory issue.

1 Like