Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Error on build "ArgumentException: Scene file not found: ''."

Discussion in 'Editor & General Support' started by unofficialgaming, Mar 8, 2021.

  1. unofficialgaming

    unofficialgaming

    Joined:
    Jan 2, 2018
    Posts:
    10
    I've been trying to build a webgl game. using the unity lego microgame package.

    the games menu will work but when i click play to load the next scene i get an error stating:
    "WebGL: RuntimeError: memory access out of bounds."

    i noticed when i build the game i get the following error:
    ArgumentException: Scene file not found: ''.
    UnityEditor.SceneManagement.EditorSceneManager.OpenScene (System.String scenePath, UnityEditor.SceneManagement.OpenSceneMode mode) (at <8d21067e8d9c494db25a2b2485216e63>:0)
    UnityEditor.SceneManagement.EditorSceneManager.OpenScene (System.String scenePath) (at <8d21067e8d9c494db25a2b2485216e63>:0)
    LEGOModelImporter.ProcessHelper.ProcessAssets (System.Func`2[T,TResult] processAction) (at Library/PackageCache/com.unity.lego.modelimporter@3.2.0/Editor/ProcessBuild.cs:131)
    LEGOModelImporter.PreProcessBuild.OnPreprocessBuild (UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.lego.modelimporter@3.2.0/Editor/ProcessBuild.cs:32)
    UnityEditor.Build.BuildPipelineInterfaces+<>c__DisplayClass15_0.<OnBuildPreProcess>b__1 (UnityEditor.Build.IPreprocessBuildWithReport bpp) (at <8d21067e8d9c494db25a2b2485216e63>:0)
    UnityEditor.Build.BuildPipelineInterfaces.InvokeCallbackInterfacesPair[T1,T2] (System.Collections.Generic.List`1[T] oneInterfaces, System.Action`1[T] invocationOne, System.Collections.Generic.List`1[T] twoInterfaces, System.Action`1[T] invocationTwo, System.Boolean exitOnFailure) (at <8d21067e8d9c494db25a2b2485216e63>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)



    would anyone be able to advice what i may have done wrong ?
     
  2. unofficialgaming

    unofficialgaming

    Joined:
    Jan 2, 2018
    Posts:
    10
    for anyone having this issue.

    The fix was simple, the lego prebuilt mesh combiner seemed to be not working correctly.

    i disabled the line :
    meshCombiner.GridExtents = optimizationBounds.size;

    in the BrickMeshCombiner script. found on the GameManger object.
     
    JeffDUnity3D and Kurt-Dekker like this.