Scene invalid on build

Discussion and help for Easy Save 3
Post Reply
Jen01
Posts: 7
Joined: Thu Apr 26, 2018 12:54 am

Scene invalid on build

Post by Jen01 »

Getting these errors on build
updating references has no effect.
Already pulled some of my hair out, Help!
ArgumentException: The scene is invalid.
UnityEngine.SceneManagement.Scene.GetRootGameObjects (System.Collections.Generic.List`1 rootGameObjects) (at C:/buildslave/unity/build/artifacts/generated/common/runtime/SceneBindings.gen.cs:58)
UnityEngine.SceneManagement.Scene.GetRootGameObjects () (at C:/buildslave/unity/build/artifacts/generated/common/runtime/SceneBindings.gen.cs:45)
ES3ReferenceMgr.GenerateReferences () (at Assets/Plugins/Easy Save 3/Scripts/ES3ReferenceMgr.cs:39)
ES3ReferenceMgr.OnBeforeSerialize () (at Assets/Plugins/Easy Save 3/Scripts/ES3ReferenceMgr.cs:17)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
ArgumentException: The scene is invalid.
UnityEngine.SceneManagement.Scene.GetRootGameObjects (System.Collections.Generic.List`1 rootGameObjects) (at C:/buildslave/unity/build/artifacts/generated/common/runtime/SceneBindings.gen.cs:58)
UnityEngine.SceneManagement.Scene.GetRootGameObjects () (at C:/buildslave/unity/build/artifacts/generated/common/runtime/SceneBindings.gen.cs:45)
ES3ReferenceMgr.GenerateReferences () (at Assets/Plugins/Easy Save 3/Scripts/ES3ReferenceMgr.cs:39)
ES3ReferenceMgr.OnBeforeSerialize () (at Assets/Plugins/Easy Save 3/Scripts/ES3ReferenceMgr.cs:17)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
User avatar
Joel
Moodkie Staff
Posts: 4846
Joined: Wed Nov 07, 2012 10:32 pm

Re: Scene invalid on build

Post by Joel »

Hi there,

I've received a report of this error recently, but have so far been able to replicate it at my end. Please could you send me a basic project which replicates it so I can work out what's happening?

Also apparently going to Window > Easy Save 3 > Settings > Auto Add Manager to Scene temporarily stops the error.

Many thanks,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Jen01
Posts: 7
Joined: Thu Apr 26, 2018 12:54 am

Re: Scene invalid on build

Post by Jen01 »

fixed by rebuilding references for each scene
Post Reply