tuningfork icon indicating copy to clipboard operation
tuningfork copied to clipboard

InvalidAnnotation when loading scene from AssetBundle

Open MichalDolezalAG opened this issue 2 years ago • 0 comments

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.

MichalDolezalAG avatar Jan 03 '24 16:01 MichalDolezalAG