-
Notifications
You must be signed in to change notification settings - Fork 5
Unable to link all scene datas to loaded scenes. Linked 0/1 #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @VirtualMaestro, thank you for reporting this issue. At first glance, it looks like the issue is related to loading the scene by its path. Did you try to load the scene by its name instead? I think the package does not test loading scenes by path. I'll check whether that's the case and take a closer look at your report later today. |
I don't know if it should work now with the latest 3.0 version, but it definitely worked with the previous version 2.x. |
Yeah, since Loading a scene by its path should work, so this is definitely a bug. When linking the loaded scene, as of namespace MyGameDevTools.SceneLoading
{
public readonly struct LoadSceneInfoName : ILoadSceneInfo
{
// [...]
public bool CanBeReferenceToScene(Scene scene) => scene.name == _sceneName;
// [...]
}
} I believe that the fix is just adding a comparison to the |
I have successfully reproduced the issue with updates to the Play Mode Tests. By simply adding Then, after applying the suggested fix from the previous comment, it worked: - public bool CanBeReferenceToScene(Scene scene) => scene.name == _sceneName;
+ public bool CanBeReferenceToScene(Scene scene) => scene.name == _sceneNameOrPath || scene.path == _sceneNameOrPath; If the tests succeed in the MR pipeline, then a fix will be deployed today. |
🎉 This issue has been resolved in version 3.0.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
After the upgrade to the vesion 3.0 I'm getting this error:
Unable to link all scene datas to loaded scenes. Linked 0/1.
Unable to link all scene datas to loaded scenes. Linked 0/1.
UnityEngine.Debug:LogError (object)
MyGameDevTools.SceneLoading.SceneDataUtilities:LinkLoadedScenesWithSceneDataArray (MyGameDevTools.SceneLoading.ISceneData[],System.Collections.Generic.IList`1<MyGameDevTools.SceneLoading.ISceneData>) (at ./Library/PackageCache/com.mygamedevtools.scene-loader@b0a767ef89/Runtime/Utilities/SceneDataUtilities.cs:72)
MyGameDevTools.SceneLoading.AdvancedSceneManager/<LoadScenesAsync_Internal>d__30:MoveNext () (at ./Library/PackageCache/com.mygamedevtools.scene-loader@b0a767ef89/Runtime/AdvancedSceneManager.cs:199)
UnityEngine.UnitySynchronizationContext:ExecuteTasks ()
All scenes are added to the Build Settings.
Thanks
The text was updated successfully, but these errors were encountered: