Hello Cesium team,
I hope you are all doing well.
After updating from 1.15.3 to 1.23.0, I encountered a new issue: when multiple scenes are present in the hierarchy, entering play mode triggers unexpected errors that prevent Cesium from loading.
Even if all additional scenes are unloaded (leaving only the entry-point scene active), their mere presence in the hierarchy appears to cause the problem.
Once this state occurs, the temporary workaround is to remove all scenes except the entry-point one and restart Unity, which is disruptive to our workflow.
Please let me know if you’d like me to open a GitHub issue as well.
Thank you!
--

--
ArgumentException: The scene is not loaded.
Reinterop.ReinteropInitializer+AssemblyReloadCallbackNativeFunction.Invoke () (at ./Library/PackageCache/com.cesium.unity@04d259c6404d/Source/generated/Reinterop.RoslynSourceGenerator/ReinteropInitializer.cs:30467)
UnityEditor.AssemblyReloadEvents.OnBeforeAssemblyReload () (at <0e08e1d2ec124b208901fdb811cdf9c2>:0)
Exception while loading Cesium ion app data: Request was canceled because the Unity AppDomain is reloading.
UnityEngine.Debug:LogError (object)
Reinterop.ReinteropInitializer:UnityEngine_Debug_CallLogError_FA05wu8x__otZNsgdHTnU9A (intptr,intptr*) (at ./Library/PackageCache/com.cesium.unity@04d259c6404d/Source/generated/Reinterop.RoslynSourceGenerator/ReinteropInitializer.cs:32766)
CesiumForUnity.CesiumIonSession:Tick () (at ./Library/PackageCache/com.cesium.unity@04d259c6404d/Source/generated/Reinterop.RoslynSourceGenerator/CesiumIonSession-generated.cs:295)
CesiumForUnity.CesiumEditorUtility:UpdateIonSession () (at ./Library/PackageCache/com.cesium.unity@04d259c6404d/Source/Editor/CesiumEditorUtility.cs:27)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
Exception while resuming Cesium ion connection: Failed to obtain _appData, can’t resume connection
UnityEngine.Debug:LogError (object)
Reinterop.ReinteropInitializer:UnityEngine_Debug_CallLogError_FA05wu8x__otZNsgdHTnU9A (intptr,intptr*) (at ./Library/PackageCache/com.cesium.unity@04d259c6404d/Source/generated/Reinterop.RoslynSourceGenerator/ReinteropInitializer.cs:32766)
CesiumForUnity.CesiumIonSession:Tick () (at ./Library/PackageCache/com.cesium.unity@04d259c6404d/Source/generated/Reinterop.RoslynSourceGenerator/CesiumIonSession-generated.cs:295)
CesiumForUnity.CesiumEditorUtility:UpdateIonSession () (at ./Library/PackageCache/com.cesium.unity@04d259c6404d/Source/Editor/CesiumEditorUtility.cs:27)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
