I just tired to upgrade to the 1.2 release.
Now the subscenes seem to be not included anymore in the build, everything worked with the 1.0 relase.
I get the following exception:
IndexOutOfRangeException: Index was outside the bounds of the array.
at Unity.Scenes.SerializeUtilityHybrid.DeserializeObjectReferences (Unity.Scenes.ReferencedUnityObjects objRefs, UnityEngine.Object[]& objectReferences) [0x0014e] in .\Library\PackageCache\com.unity.entities@1.2.1\Unity.Scenes\Hybrid\SerializeUtilityHybrid.cs:146
at Unity.Scenes.AsyncLoadSceneOperation.ScheduleSceneRead () [0x00020] in .\Library\PackageCache\com.unity.entities@1.2.1\Unity.Scenes\AsyncLoadSceneOperation.cs:408
at Unity.Scenes.AsyncLoadSceneOperation.UpdateAsync () [0x001e1] in .\Library\PackageCache\com.unity.entities@1.2.1\Unity.Scenes\AsyncLoadSceneOperation.cs:354
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
I’m losing the scenes simply with:
SceneSystem.LoadSceneAsync(world, scene.value);
While the value is simply a component with a scene reference:
public struct SceneReferenceElement : IBufferElementData
{
public EntitySceneReference value;
}
Everything works in the editor, but the build fails.
What has changed? What do I need to do to have the subscenes included in a build?