x


Format of .scene files etc

I would like to write a program to be able to do a not-very simple diff of two .scene files at the object level and a simple "same/different". A simple byte-wise diff doesnt work.

Anyone know how the .scene files are serialized? Its not BinaryFormatter.

If I could deserialize them I could diff them.

more ▼

asked Apr 20 '11 at 07:54 PM

jamie 1 gravatar image

jamie 1
1 3 3 7

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

...and return just yes/no.

Erm, you could just compare each byte of the files. If two bytes are different, then yes, it's a different file. If the file lengths are different, then yes, it's a different file.

more ▼

answered Apr 20 '11 at 08:39 PM

Statement gravatar image

Statement ♦♦
20.1k 35 70 175

:D that's true of course, but Unity sometimes updates assets that haven't changed (or just generate a new GUID). Your solution meets the "very simple diff" requirement and for most cases it would do the job.

Apr 20 '11 at 08:48 PM Bunny83

Yes, ok, my bad. not quite that simple.

Apr 20 '11 at 10:45 PM jamie 1

It's a common problem people dislike with unity. Devoid of easy merge scenes.

Apr 21 '11 at 01:13 AM Statement ♦♦
(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:

x51
x28
x3

asked: Apr 20 '11 at 07:54 PM

Seen: 1289 times

Last Updated: Apr 20 '11 at 10:43 PM