Skip to content

Serialized Files ​

Unity uses serialized files to store scenes, assets, and other data in a built game. Common examples include globalgamemanagers, resources.assets, level1, and sharedassets2.assets. Some of these files have no extension, but Unity still expects them to follow its serialized file format.

Why changing the format can break the game ​

The Unity player reads these files directly, without going through a loader in your game scripts. If you change the format of a file the player expects to load, the player may fail to start or load the affected content. Supporting a different format for those files would require changing Unity's built-in reader, which normally requires Unity source code access.

Alternatives for assets you load yourself ​

For content that does not need to be part of the player's built-in data, consider moving it into AssetBundles or storing it in custom files that your game loads at runtime. Check that the same content is not still included in the standard build output through a scene reference or a Resources folder.

This changes how you distribute selected assets; it does not protect the serialized files that Unity still needs to load directly or make the moved assets impossible to extract.