wd357dui 2c2769ed79
fix alignment and missing script types for writing of SerializedFile (#1365)
* fix alignment and missing script types for writing of `SerializedFile`

for the `Write` method of `SerializedFile`:
 - add script types
 - `objectDataPosition` is aligned to 16 bytes
 - each object data is aligned to 8 bytes

Tested by reading and writing back (replacing) a game's `globalgamemanagers.assets` file (the game has unity version `2022.3.6f1`); with those script types and alignments changes the game won't crash on startup anymore

* fix alignment and missing script types for writing of `SerializedFile`
2024-05-24 14:28:28 -07:00
..