x


Does XML Serialization Support "Class Object" Arrays?

Hi there i'm having a complete headache with XML Serialization, I'm trying to store a load of data across various class object within other class objects etc etc, storing each up through an array, but I keep getting The type of the argument object is not primitive error.

Any ideas? - Caius

more ▼

asked Jul 12 '11 at 03:01 PM

Caiuse gravatar image

Caiuse
787 83 103 121

I've been reading about Deep Serialization, anyone encountered this and successfully implemented the serialization of a complex object within Unity?

Jul 12 '11 at 03:19 PM Caiuse
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Serialization is no problem.

Are you sure that the class you try to serialize is marked as serializable? because you need to have serializable classes. The SerializeObject / DeserializeObject functions on the unifycommunity give you a good start on a function to serialize from and to XML

more ▼

answered Jul 13 '11 at 08:25 PM

Dreamora gravatar image

Dreamora
3.2k 1 4 25

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

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

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1359
x336
x255
x177

asked: Jul 12 '11 at 03:01 PM

Seen: 1328 times

Last Updated: Jul 13 '11 at 08:25 PM