Unity - A scripted object has a different serialization layout when loading errorHow to serialize an object into a stringWhat is object serialization?What is the difference between Serialization and Marshaling?Error when testing on iOS simulator: Couldn't register with the bootstrap serverSerialize an object to stringSerialize an object to XMLHow can I change property names when serializing with Json.net?Serialization misbehave when closing UnityUnity object reference + serialized field. What am I missing?Unity - why is output_log.txt not showing filenames in errors
Background for black and white chart
How to address players struggling with simple controls?
Do items with curse of vanishing disappear from shulker boxes?
What made the Ancient One do this in Endgame?
At zero velocity, is this object neither speeding up nor slowing down?
How do I say what something is made out of?
Reflecting Telescope Blind Spot?
How to make a villain when your PCs are villains?
100-doors puzzle
Should I email my professor to clear up a (possibly very irrelevant) awkward misunderstanding?
Sakkāya-Ditthi and Self-View
Having some issue with notation in a Hilbert space
How to remove multiple elements from Set/Map AND knowing which ones were removed?
Are soroban (Japanese abacus) classes worth doing?
What is the color associated with lukewarm?
Should I move out from my current apartment before the contract ends to save more money?
Using roof rails to set up hammock
Will users know a CardView is clickable
What things do I only get a limited opportunity to take photos of?
Can Dive Down protect a creature against Pacifism?
Converting 3x7 to a 1x7. Is it possible with only existing parts?
How can religions without a hell discourage evil-doing?
How do I become a better writer when I hate reading?
Can artificial satellite positions affect tides?
Unity - A scripted object has a different serialization layout when loading error
How to serialize an object into a stringWhat is object serialization?What is the difference between Serialization and Marshaling?Error when testing on iOS simulator: Couldn't register with the bootstrap serverSerialize an object to stringSerialize an object to XMLHow can I change property names when serializing with Json.net?Serialization misbehave when closing UnityUnity object reference + serialized field. What am I missing?Unity - why is output_log.txt not showing filenames in errors
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
The game has run on my iPhone 8 Plus before, and it has worked with no issues up until now. Now I get the following output in Xcode during the app's runtime:
2019-03-25 02:16:01.659981+0000 tester[5780:2725434] [DYMTLInitPlatform] platform initialization successful
CrashReporter: initialized
2019-03-25 02:16:01.731073+0000 tester[5780:2725204] Built from '2018.3/staging' branch, Version '2018.3.3f1 (393bae82dbb8)', Build type 'Release', Scripting Backend 'il2cpp'
2019-03-25 02:16:01.734912+0000 tester[5780:2725204] -> registered mono modules 0x101706230
-> applicationDidFinishLaunching()
2019-03-25 02:16:01.876713+0000 tester[5780:2725204] Metal GPU Frame Capture Enabled
2019-03-25 02:16:01.877790+0000 tester[5780:2725204] Metal API Validation Disabled
2019-03-25 02:16:02.125502+0000 tester[5780:2725204] [Warning] Trying to set delaysTouchesBegan to NO on a system gate gesture recognizer - this is unsupported and will have undesired side effects
-> applicationDidBecomeActive()
GfxDevice: creating device client; threaded=1
Initializing Metal device caps: Apple A10 GPU
Initialize engine version: 2018.3.3f1 (393bae82dbb8)
2019-03-25 02:16:02.722439+0000 tester[5780:2725483] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Speaker (type: Speaker)
2019-03-25 02:16:02.723162+0000 tester[5780:2725483] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Speaker (type: Speaker)
CrashReporter: No pending report exists at /var/mobile/Containers/Data/Application/2F1B8739-D2F2-4116-92CA-BAE215C4DD5D/Library/Caches/CrashReports/crash-pending.plcrashThe referenced script (Network) on this Behaviour is missing!
(Filename: Line: 195)
The referenced script (ClientHandleData) on this Behaviour is missing!
(Filename: Line: 195)
The referenced script (ClientSendData) on this Behaviour is missing!
(Filename: Line: 195)
The referenced script (Player) on this Behaviour is missing!
(Filename: Line: 195)
The referenced script (MenuManager2) on this Behaviour is missing!
(Filename: Line: 195)
The referenced script (GPS) on this Behaviour is missing!
(Filename: Line: 195)
The referenced script on this Behaviour (Game Object 'NetworkManager') is missing!
(Filename: Line: 294)
A scripted object (probably Network?) has a different serialization layout when loading. (Read 32 bytes but expected 60 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
(Filename: Line: 2001)
The referenced script on this Behaviour (Game Object 'NetworkManager') is missing!
(Filename: Line: 294)
A scripted object (probably Player?) has a different serialization layout when loading. (Read 32 bytes but expected 52 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
(Filename: Line: 2001)
The referenced script on this Behaviour (Game Object 'NetworkManager') is missing!
(Filename: Line: 294)
A scripted object (probably ClientSendData?) has a different serialization layout when loading. (Read 32 bytes but expected 44 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
(Filename: Line: 2001)
The referenced script on this Behaviour (Game Object 'NetworkManager') is missing!
(Filename: Line: 294)
The referenced script on this Behaviour (Game Object 'MenuManager') is missing!
(Filename: Line: 294)
A scripted object (probably MenuManager2?) has a different serialization layout when loading. (Read 32 bytes but expected 68 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
(Filename: Line: 2001)
The referenced script on this Behaviour (Game Object 'GPS') is missing!
(Filename: Line: 294)
A scripted object (probably GPS?) has a different serialization layout when loading. (Read 32 bytes but expected 36 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
(Filename: Line: 2001)
UnloadTime: 2.920625 ms
Setting up 1 worker threads for Enlighten.
Thread -> id: 170b7b000 -> priority: 1
I have not used #ifdef UNITY_EDITOR anywhere in my code.
The game runs perfectly fine in the Unity editor with no issues or warnings. The game does load onto the phone showing the main menu, but the play button does not progress to the next scene.
Seems to be consistently reading only 32 bytes for each object based on the output.
Any ideas?
c# ios xcode unity3d serialization
add a comment |
The game has run on my iPhone 8 Plus before, and it has worked with no issues up until now. Now I get the following output in Xcode during the app's runtime:
2019-03-25 02:16:01.659981+0000 tester[5780:2725434] [DYMTLInitPlatform] platform initialization successful
CrashReporter: initialized
2019-03-25 02:16:01.731073+0000 tester[5780:2725204] Built from '2018.3/staging' branch, Version '2018.3.3f1 (393bae82dbb8)', Build type 'Release', Scripting Backend 'il2cpp'
2019-03-25 02:16:01.734912+0000 tester[5780:2725204] -> registered mono modules 0x101706230
-> applicationDidFinishLaunching()
2019-03-25 02:16:01.876713+0000 tester[5780:2725204] Metal GPU Frame Capture Enabled
2019-03-25 02:16:01.877790+0000 tester[5780:2725204] Metal API Validation Disabled
2019-03-25 02:16:02.125502+0000 tester[5780:2725204] [Warning] Trying to set delaysTouchesBegan to NO on a system gate gesture recognizer - this is unsupported and will have undesired side effects
-> applicationDidBecomeActive()
GfxDevice: creating device client; threaded=1
Initializing Metal device caps: Apple A10 GPU
Initialize engine version: 2018.3.3f1 (393bae82dbb8)
2019-03-25 02:16:02.722439+0000 tester[5780:2725483] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Speaker (type: Speaker)
2019-03-25 02:16:02.723162+0000 tester[5780:2725483] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Speaker (type: Speaker)
CrashReporter: No pending report exists at /var/mobile/Containers/Data/Application/2F1B8739-D2F2-4116-92CA-BAE215C4DD5D/Library/Caches/CrashReports/crash-pending.plcrashThe referenced script (Network) on this Behaviour is missing!
(Filename: Line: 195)
The referenced script (ClientHandleData) on this Behaviour is missing!
(Filename: Line: 195)
The referenced script (ClientSendData) on this Behaviour is missing!
(Filename: Line: 195)
The referenced script (Player) on this Behaviour is missing!
(Filename: Line: 195)
The referenced script (MenuManager2) on this Behaviour is missing!
(Filename: Line: 195)
The referenced script (GPS) on this Behaviour is missing!
(Filename: Line: 195)
The referenced script on this Behaviour (Game Object 'NetworkManager') is missing!
(Filename: Line: 294)
A scripted object (probably Network?) has a different serialization layout when loading. (Read 32 bytes but expected 60 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
(Filename: Line: 2001)
The referenced script on this Behaviour (Game Object 'NetworkManager') is missing!
(Filename: Line: 294)
A scripted object (probably Player?) has a different serialization layout when loading. (Read 32 bytes but expected 52 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
(Filename: Line: 2001)
The referenced script on this Behaviour (Game Object 'NetworkManager') is missing!
(Filename: Line: 294)
A scripted object (probably ClientSendData?) has a different serialization layout when loading. (Read 32 bytes but expected 44 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
(Filename: Line: 2001)
The referenced script on this Behaviour (Game Object 'NetworkManager') is missing!
(Filename: Line: 294)
The referenced script on this Behaviour (Game Object 'MenuManager') is missing!
(Filename: Line: 294)
A scripted object (probably MenuManager2?) has a different serialization layout when loading. (Read 32 bytes but expected 68 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
(Filename: Line: 2001)
The referenced script on this Behaviour (Game Object 'GPS') is missing!
(Filename: Line: 294)
A scripted object (probably GPS?) has a different serialization layout when loading. (Read 32 bytes but expected 36 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
(Filename: Line: 2001)
UnloadTime: 2.920625 ms
Setting up 1 worker threads for Enlighten.
Thread -> id: 170b7b000 -> priority: 1
I have not used #ifdef UNITY_EDITOR anywhere in my code.
The game runs perfectly fine in the Unity editor with no issues or warnings. The game does load onto the phone showing the main menu, but the play button does not progress to the next scene.
Seems to be consistently reading only 32 bytes for each object based on the output.
Any ideas?
c# ios xcode unity3d serialization
add a comment |
The game has run on my iPhone 8 Plus before, and it has worked with no issues up until now. Now I get the following output in Xcode during the app's runtime:
2019-03-25 02:16:01.659981+0000 tester[5780:2725434] [DYMTLInitPlatform] platform initialization successful
CrashReporter: initialized
2019-03-25 02:16:01.731073+0000 tester[5780:2725204] Built from '2018.3/staging' branch, Version '2018.3.3f1 (393bae82dbb8)', Build type 'Release', Scripting Backend 'il2cpp'
2019-03-25 02:16:01.734912+0000 tester[5780:2725204] -> registered mono modules 0x101706230
-> applicationDidFinishLaunching()
2019-03-25 02:16:01.876713+0000 tester[5780:2725204] Metal GPU Frame Capture Enabled
2019-03-25 02:16:01.877790+0000 tester[5780:2725204] Metal API Validation Disabled
2019-03-25 02:16:02.125502+0000 tester[5780:2725204] [Warning] Trying to set delaysTouchesBegan to NO on a system gate gesture recognizer - this is unsupported and will have undesired side effects
-> applicationDidBecomeActive()
GfxDevice: creating device client; threaded=1
Initializing Metal device caps: Apple A10 GPU
Initialize engine version: 2018.3.3f1 (393bae82dbb8)
2019-03-25 02:16:02.722439+0000 tester[5780:2725483] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Speaker (type: Speaker)
2019-03-25 02:16:02.723162+0000 tester[5780:2725483] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Speaker (type: Speaker)
CrashReporter: No pending report exists at /var/mobile/Containers/Data/Application/2F1B8739-D2F2-4116-92CA-BAE215C4DD5D/Library/Caches/CrashReports/crash-pending.plcrashThe referenced script (Network) on this Behaviour is missing!
(Filename: Line: 195)
The referenced script (ClientHandleData) on this Behaviour is missing!
(Filename: Line: 195)
The referenced script (ClientSendData) on this Behaviour is missing!
(Filename: Line: 195)
The referenced script (Player) on this Behaviour is missing!
(Filename: Line: 195)
The referenced script (MenuManager2) on this Behaviour is missing!
(Filename: Line: 195)
The referenced script (GPS) on this Behaviour is missing!
(Filename: Line: 195)
The referenced script on this Behaviour (Game Object 'NetworkManager') is missing!
(Filename: Line: 294)
A scripted object (probably Network?) has a different serialization layout when loading. (Read 32 bytes but expected 60 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
(Filename: Line: 2001)
The referenced script on this Behaviour (Game Object 'NetworkManager') is missing!
(Filename: Line: 294)
A scripted object (probably Player?) has a different serialization layout when loading. (Read 32 bytes but expected 52 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
(Filename: Line: 2001)
The referenced script on this Behaviour (Game Object 'NetworkManager') is missing!
(Filename: Line: 294)
A scripted object (probably ClientSendData?) has a different serialization layout when loading. (Read 32 bytes but expected 44 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
(Filename: Line: 2001)
The referenced script on this Behaviour (Game Object 'NetworkManager') is missing!
(Filename: Line: 294)
The referenced script on this Behaviour (Game Object 'MenuManager') is missing!
(Filename: Line: 294)
A scripted object (probably MenuManager2?) has a different serialization layout when loading. (Read 32 bytes but expected 68 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
(Filename: Line: 2001)
The referenced script on this Behaviour (Game Object 'GPS') is missing!
(Filename: Line: 294)
A scripted object (probably GPS?) has a different serialization layout when loading. (Read 32 bytes but expected 36 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
(Filename: Line: 2001)
UnloadTime: 2.920625 ms
Setting up 1 worker threads for Enlighten.
Thread -> id: 170b7b000 -> priority: 1
I have not used #ifdef UNITY_EDITOR anywhere in my code.
The game runs perfectly fine in the Unity editor with no issues or warnings. The game does load onto the phone showing the main menu, but the play button does not progress to the next scene.
Seems to be consistently reading only 32 bytes for each object based on the output.
Any ideas?
c# ios xcode unity3d serialization
The game has run on my iPhone 8 Plus before, and it has worked with no issues up until now. Now I get the following output in Xcode during the app's runtime:
2019-03-25 02:16:01.659981+0000 tester[5780:2725434] [DYMTLInitPlatform] platform initialization successful
CrashReporter: initialized
2019-03-25 02:16:01.731073+0000 tester[5780:2725204] Built from '2018.3/staging' branch, Version '2018.3.3f1 (393bae82dbb8)', Build type 'Release', Scripting Backend 'il2cpp'
2019-03-25 02:16:01.734912+0000 tester[5780:2725204] -> registered mono modules 0x101706230
-> applicationDidFinishLaunching()
2019-03-25 02:16:01.876713+0000 tester[5780:2725204] Metal GPU Frame Capture Enabled
2019-03-25 02:16:01.877790+0000 tester[5780:2725204] Metal API Validation Disabled
2019-03-25 02:16:02.125502+0000 tester[5780:2725204] [Warning] Trying to set delaysTouchesBegan to NO on a system gate gesture recognizer - this is unsupported and will have undesired side effects
-> applicationDidBecomeActive()
GfxDevice: creating device client; threaded=1
Initializing Metal device caps: Apple A10 GPU
Initialize engine version: 2018.3.3f1 (393bae82dbb8)
2019-03-25 02:16:02.722439+0000 tester[5780:2725483] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Speaker (type: Speaker)
2019-03-25 02:16:02.723162+0000 tester[5780:2725483] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Speaker (type: Speaker)
CrashReporter: No pending report exists at /var/mobile/Containers/Data/Application/2F1B8739-D2F2-4116-92CA-BAE215C4DD5D/Library/Caches/CrashReports/crash-pending.plcrashThe referenced script (Network) on this Behaviour is missing!
(Filename: Line: 195)
The referenced script (ClientHandleData) on this Behaviour is missing!
(Filename: Line: 195)
The referenced script (ClientSendData) on this Behaviour is missing!
(Filename: Line: 195)
The referenced script (Player) on this Behaviour is missing!
(Filename: Line: 195)
The referenced script (MenuManager2) on this Behaviour is missing!
(Filename: Line: 195)
The referenced script (GPS) on this Behaviour is missing!
(Filename: Line: 195)
The referenced script on this Behaviour (Game Object 'NetworkManager') is missing!
(Filename: Line: 294)
A scripted object (probably Network?) has a different serialization layout when loading. (Read 32 bytes but expected 60 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
(Filename: Line: 2001)
The referenced script on this Behaviour (Game Object 'NetworkManager') is missing!
(Filename: Line: 294)
A scripted object (probably Player?) has a different serialization layout when loading. (Read 32 bytes but expected 52 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
(Filename: Line: 2001)
The referenced script on this Behaviour (Game Object 'NetworkManager') is missing!
(Filename: Line: 294)
A scripted object (probably ClientSendData?) has a different serialization layout when loading. (Read 32 bytes but expected 44 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
(Filename: Line: 2001)
The referenced script on this Behaviour (Game Object 'NetworkManager') is missing!
(Filename: Line: 294)
The referenced script on this Behaviour (Game Object 'MenuManager') is missing!
(Filename: Line: 294)
A scripted object (probably MenuManager2?) has a different serialization layout when loading. (Read 32 bytes but expected 68 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
(Filename: Line: 2001)
The referenced script on this Behaviour (Game Object 'GPS') is missing!
(Filename: Line: 294)
A scripted object (probably GPS?) has a different serialization layout when loading. (Read 32 bytes but expected 36 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
(Filename: Line: 2001)
UnloadTime: 2.920625 ms
Setting up 1 worker threads for Enlighten.
Thread -> id: 170b7b000 -> priority: 1
I have not used #ifdef UNITY_EDITOR anywhere in my code.
The game runs perfectly fine in the Unity editor with no issues or warnings. The game does load onto the phone showing the main menu, but the play button does not progress to the next scene.
Seems to be consistently reading only 32 bytes for each object based on the output.
Any ideas?
c# ios xcode unity3d serialization
c# ios xcode unity3d serialization
asked Mar 25 at 2:41
PAVAN007PAVAN007
11
11
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I isolated the problem down to the scripts. I still am not sure what was wrong, but this is what I did to fix these errors:
- Create an empty project
- Drag and drop everything from my old project into my new project EXCEPT any of the scripts.
- Right-click -> New C# Script for every script I needed to replace and gave the same name.
- Copy and paste the code from the old script to the new script
- Attach the scripts to their relevant game objects in each scene.
For some reason, this worked, and the build errors went. It did not work by dragging and dropping the old scripts into the new project. I hope this helps!
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55330617%2funity-a-scripted-object-has-a-different-serialization-layout-when-loading-erro%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I isolated the problem down to the scripts. I still am not sure what was wrong, but this is what I did to fix these errors:
- Create an empty project
- Drag and drop everything from my old project into my new project EXCEPT any of the scripts.
- Right-click -> New C# Script for every script I needed to replace and gave the same name.
- Copy and paste the code from the old script to the new script
- Attach the scripts to their relevant game objects in each scene.
For some reason, this worked, and the build errors went. It did not work by dragging and dropping the old scripts into the new project. I hope this helps!
add a comment |
I isolated the problem down to the scripts. I still am not sure what was wrong, but this is what I did to fix these errors:
- Create an empty project
- Drag and drop everything from my old project into my new project EXCEPT any of the scripts.
- Right-click -> New C# Script for every script I needed to replace and gave the same name.
- Copy and paste the code from the old script to the new script
- Attach the scripts to their relevant game objects in each scene.
For some reason, this worked, and the build errors went. It did not work by dragging and dropping the old scripts into the new project. I hope this helps!
add a comment |
I isolated the problem down to the scripts. I still am not sure what was wrong, but this is what I did to fix these errors:
- Create an empty project
- Drag and drop everything from my old project into my new project EXCEPT any of the scripts.
- Right-click -> New C# Script for every script I needed to replace and gave the same name.
- Copy and paste the code from the old script to the new script
- Attach the scripts to their relevant game objects in each scene.
For some reason, this worked, and the build errors went. It did not work by dragging and dropping the old scripts into the new project. I hope this helps!
I isolated the problem down to the scripts. I still am not sure what was wrong, but this is what I did to fix these errors:
- Create an empty project
- Drag and drop everything from my old project into my new project EXCEPT any of the scripts.
- Right-click -> New C# Script for every script I needed to replace and gave the same name.
- Copy and paste the code from the old script to the new script
- Attach the scripts to their relevant game objects in each scene.
For some reason, this worked, and the build errors went. It did not work by dragging and dropping the old scripts into the new project. I hope this helps!
answered Apr 1 at 19:16
PAVAN007PAVAN007
11
11
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55330617%2funity-a-scripted-object-has-a-different-serialization-layout-when-loading-erro%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown