- Home /
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.
Answer by Statement · Apr 20, 2011 at 08:39 PM
...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.
: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.
It's a common problem people dislike with unity. Devoid of easy merge scenes.