- Home /
AllowSceneActivation only works on first inactive scene?
Hey all,
For my project players can switch between scenes by clicking certain GameObjects. To make the transition between scenes go smooth scenes are loaded beforehand with allowSceneActivation set to false. The AsyncOperation is stored in a Dictionary with the name of the scene as key (string) and the AsyncOperation as value.
When a GameObject is clicked the allowSceneActivation of the AsyncOperation with the right key is set to true. This works fine when there is only one scene inactive ("is loading" in the editor) in the hierarchy, but when there are multiple scenes inactive only the first one in the hierarchy can be activated. If say, for example, the second one is activated first nothing happens. When the first one is activated after the second suddenly both become active.
Is this expected behaviour or am I doing something wrong?
Your answer
Follow this Question
Related Questions
Attempting to Create an Essential SceneElements Checker 0 Answers
CheckConsistency: GameObject does not reference component Animator. Fixing. 0 Answers
Variables are resetting after loading the play scene 1 Answer
How to keep the same gameobject with different transform values in different scenes 1 Answer