Search Unity

Serialized file size error

Discussion in 'Editor & General Support' started by LuisRivera, Feb 13, 2020.

  1. LuisRivera

    LuisRivera

    Joined:
    Dec 26, 2014
    Posts:
    3
    Hi all,

    After compile our project, I get this error message:

    Serialized file size of 8.37 GB (8982731120 bytes) exceeds maximum. File name: 'Temp/StagingArea/Data/sharedassets0.assets'. Serialized files over 4.00 GB (4294967295 bytes) cannot be loaded by the player. Some likely ways to reduce this are utilizing asset bundles, re-balancing asset locations, or limiting their serialized size e.g. limiting the maximum texture sizes.
    UnityEngine.GUIUtility ProcessEvent(Int32, IntPtr)

    The build is completes but is not working correctly.

    Deleting some heavy objects in the scene, I can complete a functional build, but I need to add those deleted components too.

    Comparing both builds, I saw that the "sharedassets0.assets" file is less that 4GB on the functional build and over 8GB on the not working build.

    Any idea of how can I solve this issue?

    Thanks in advance.
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Split your extra large scene into several scenes which you additively load together.