Earlier today I rewrote an entire app for a client, in C#, instead of C# and Unityscript, which is what it originally was in. I did this because at the time (see other messages in the Windows 8 section), Unityscript wasn’t working. Plus, I have a plug-in I need to call that works fine in a test project, in C#. The client needs this TODAY, I used Unity successfully for the rest of it, so the Win 8 Phone failure is particularly aggravating.
This was a mind melting hate filled kind of day, but now it’s done. I rewrote some 3000 lines in C#, and it’s all wrapped up. It works flawlessly on Android, iOS, Mac, PC, and Web still.
BUT NOW IT DOES NOT WORK AT ALL on Windows 8 Phone.
I get no error messages. Nada. Just nothing works.
Where can I look on a Windows Phone to get any clues about what’s going on??
It throws the same error that the Javascript was throwing in this thread. There is a sample project is in this thread as well. I would REALLY like to know what’s going on, so if you can reproduce it (or can’t!) please let me know!
It’s the same error. Different circumstances are creating it, from what I can tell. In this thread, C# scripts won’t run at all. That’s a different problem, but it’s the same serialization error. I’ll see if I can copy it again.
“A script behaviour has a different serialization layout when loading.
(Read 24 bytes but expected 32 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized
properties in any of your scripts?”
And no, I did not do that. That string does not exist anywhere in any of my scripts.
Also, this link http://forum.unity3d.com/threads/202522-JS-vs-C-Only-one-or-the-other contains a unitypackage that has one of the failing projects in it. I’m hoping that someone can shed some light on what is happening. I’ll take ANY solution right now, as I spent yesterday rewriting the entire app in C# hoping that would solve it. It did not.
A script behaviour has a different serialization layout when loading. (Read 24 bytes but expected 32 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
I checked, the class name and the file name are identical. No idea why it’s throwing that error. The other one is the one I see in the debugger on screen. And there’s no usage of UNITY_EDITOR anywhere in my project.