• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by mr_alex · Aug 12, 2014 at 11:08 PM · c#serializationsaving

TypeLoadException in Editor after trying to load saved data from disk that just worked in Editor + Build / Play

I'm trying to serialize game data in a binary file and have built several custom classes to hold said data. All my classes are marked as serializable (C#, Windows 7, Visual Studio Express 2013) and everything works very well when I run it in the Unity3d Editor and the first time I Build + Play the game. So far, so good...

Unfortunately, the next time I try and run my game in the Unity3d Editor I get a TypeLoadException error when it tries to load the saved binary file.

I suspect this has something to do with a mismatch between the previous assembly version my data was originally saved out of and a new one created by the Unity3d editor when I run my game in it again (forgive me if I'm way off the mark), but I have no idea how to address this issue if this is the case.

Has anyone run into this before? Am I in the ballpark about what my issue is? Any tips/pointers?

Thanks in advance for lending me use of your gigantic and powerful brain!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

Saving and Loading Various Things 1 Answer

Serialization problems with System.IO.MemoryStream 1 Answer

Is it possible to save an object array? 1 Answer

File saving error 1 Answer

Save/Load Animation State of Instantiated Prefabs 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges