Recently, we decided to separate our pak file into different chunks. But we found the total size of the separated chunks are bigger than the original one. In particular, we found the main character asset exist in every chunk. Is it intended to be so, or we did some configuration incorrectly. Thank you.
Hi there,
When you split your game into multiple pak chunks, Unreal Engine uses asset references and dependencies to determine which assets go into which chunk. If an asset (like your character asset) is referenced from multiple parts of the game that belong to different chunks, Unreal might duplicate the asset in each chunk to satisfy dependencies.
There is a project setting you can enable to prevent this behaviour: “Force One Chunk Per File”. [Image Removed]When this setting is enabled, each individual file will only be packaged into a single chunk.
The risk you run when enabling this setting is that you have to be sure the pak file, which contains your character asset, is loaded and the asset is available before you try to access that asset from another chunk. It will be up to you to ensure the chunks are downloaded and loaded in the correct order.
Let me know if you have any further questions.
Regards,
Thomas
This is exactly what I need, thank you !