tuningfork
tuningfork copied to clipboard
InvalidAnnotation when loading scene from AssetBundle
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.