Error changing scene

Mariano

New member
Hello everyone
I created a menu scene and a scene1 with the fps.
When I run the game and it goes from the menu to scene 1 everything works fine.
But when from scene 1 the menu is returned and from there again to scene 1 the following error appears:

NullReferenceException: Object reference not set to an instance of an object
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.Awake () (at Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotion.cs:302)

IndexOutOfRangeException: Index was outside the bounds of the array.
Opsive.UltimateCharacterController.Game.KinematicObjectManager.SetCharacterMovementInputInternal (System.Int32 characterIndex, System.Single horizontalMovement, System.Single forwardMovement) (at Assets/Opsive/UltimateCharacterController/Scripts/Game/KinematicObjectManager.cs:546)
Opsive.UltimateCharacterController.Game.KinematicObjectManager.SetCharacterMovementInput (System.Int32 characterIndex, System.Single horizontalMovement, System.Single forwardMovement) (at Assets/Opsive/UltimateCharacterController/Scripts/Game/KinematicObjectManager.cs:535)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotionHandler.Update () (at Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotionHandler.cs:71)

That could be happening?
Any suggestions
 

Justin

Administrator
Staff member
See this post:

 

Mariano

New member
As you mention in that thread, replacing the following lines of:
UnityEngineUtility

Existing line
Code:
if (s_LoadedAssemblies == null) {

Line that replaces it
Code:
if (s_LoadedAssemblies == null || s_LoadedAssemblies.Count == 0) {

The problem was solved

Thanks for the attention
Best regards
 
Top