ScriptableObject-Architecture
ScriptableObject-Architecture copied to clipboard
Fix SceneIndex different from index in build settings which can cause exceptions when using LoadScene(int)
If a scene was index 3 visibly in the build index, but a scene above it was disabled, then the index shown in the SceneVariable would be off by 1 and cause problems when loading by integer.