You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does anybody know how to solve this?
I opened the project in the correct version and the error continues. After compiling the game does not load the scene of "level_Island"
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <695d1cc93cca45069c528c15c9fdd749>:0) System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <695d1cc93cca45069c528c15c9fdd749>:0) **Cinemachine.CinemachineBrain.UpdateFrame0** (System.Single deltaTime) (at Library/PackageCache/[email protected]/Runtime/Behaviours/CinemachineBrain.cs:690) Cinemachine.CinemachineBrain.ManualUpdate () (at Library/PackageCache/[email protected]/Runtime/Behaviours/CinemachineBrain.cs:349) GameplayIngredients.Editor.LinkGameView.UpdateCinemachinePreview (System.Boolean value) (at Library/PackageCache/[email protected]/Editor/GameViewLink/LinkGameView.cs:247) GameplayIngredients.Editor.LinkGameView.set_CinemachineActive (System.Boolean value) (at Library/PackageCache/[email protected]/Editor/GameViewLink/LinkGameView.cs:58) GameplayIngredients.Editor.LinkGameView.OnPlayModeChanged (UnityEditor.PlayModeStateChange state) (at Library/PackageCache/[email protected]/Editor/GameViewLink/LinkGameView.cs:104) UnityEditor.EditorApplication.Internal_PlayModeStateChanged (UnityEditor.PlayModeStateChange state) (at <ad50112e30b445fdbf80d5814c3cbcf6>:0)
The text was updated successfully, but these errors were encountered:
derikbr
changed the title
ArgumentOutOfRangeException: Index was out of range. Must be non-negative ... Cinemachine.CinemachineBrain.UpdateFrame0
ArgumentOutOfRangeException: Index was out of range. Must be non-negative..
Mar 11, 2022
Yeah, go to File->Build Settings and check the checkbox next to that scene. The problem was that the scene was not included in the game, therefore the utility class which searches the scene index by name, on runtime, did not find the scene registered, so it returned -1, hence the exception you're getting.
Does anybody know how to solve this?
I opened the project in the correct version and the error continues. After compiling the game does not load the scene of "level_Island"
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <695d1cc93cca45069c528c15c9fdd749>:0) System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <695d1cc93cca45069c528c15c9fdd749>:0) **Cinemachine.CinemachineBrain.UpdateFrame0** (System.Single deltaTime) (at Library/PackageCache/[email protected]/Runtime/Behaviours/CinemachineBrain.cs:690) Cinemachine.CinemachineBrain.ManualUpdate () (at Library/PackageCache/[email protected]/Runtime/Behaviours/CinemachineBrain.cs:349) GameplayIngredients.Editor.LinkGameView.UpdateCinemachinePreview (System.Boolean value) (at Library/PackageCache/[email protected]/Editor/GameViewLink/LinkGameView.cs:247) GameplayIngredients.Editor.LinkGameView.set_CinemachineActive (System.Boolean value) (at Library/PackageCache/[email protected]/Editor/GameViewLink/LinkGameView.cs:58) GameplayIngredients.Editor.LinkGameView.OnPlayModeChanged (UnityEditor.PlayModeStateChange state) (at Library/PackageCache/[email protected]/Editor/GameViewLink/LinkGameView.cs:104) UnityEditor.EditorApplication.Internal_PlayModeStateChanged (UnityEditor.PlayModeStateChange state) (at <ad50112e30b445fdbf80d5814c3cbcf6>:0)
The text was updated successfully, but these errors were encountered: