Skip to content
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

InvalidAnnotation when loading scene from AssetBundle #43

Open
MichalDolezalAG opened this issue Jan 3, 2024 · 0 comments
Open

InvalidAnnotation when loading scene from AssetBundle #43

MichalDolezalAG opened this issue Jan 3, 2024 · 0 comments

Comments

@MichalDolezalAG
Copy link

Anytime we load scene from AssetBundle, APT logs as error Error Unity SetCurrentAnnotation({ }) result is InvalidAnnotation.
This is caused by Scene.sceneIndex returning -1
https://docs.unity3d.com/ScriptReference/SceneManagement.Scene-buildIndex.html

We fixed it for now by implementing custom annotation, but it's a bit annoying and it took us a lot of time searching for why is this happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant