Dictionary issue

SOSolacex

Member
Hey, I am having this issue:

KeyNotFoundException: The given key was not present in the dictionary.
System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) (at <9577ac7a62ef43179789031239ba8798>:0)
Opsive.UltimateCharacterController.Character.CharacterLocomotion.CheckGround () (at Assets/Opsive/UltimateCharacterController/Scripts/Character/CharacterLocomotion.cs:1141)
Opsive.UltimateCharacterController.Character.CharacterLocomotion.DeflectVerticalCollisions () (at Assets/Opsive/UltimateCharacterController/Scripts/Character/CharacterLocomotion.cs:1073)
Opsive.UltimateCharacterController.Character.CharacterLocomotion.UpdatePosition () (at Assets/Opsive/UltimateCharacterController/Scripts/Character/CharacterLocomotion.cs:771)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.UpdatePosition () (at Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotion.cs:966)
Opsive.UltimateCharacterController.Character.CharacterLocomotion.UpdatePositionAndRotation () (at Assets/Opsive/UltimateCharacterController/Scripts/Character/CharacterLocomotion.cs:539)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.UpdatePositionAndRotation () (at Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotion.cs:834)
Opsive.UltimateCharacterController.Character.CharacterLocomotion.UpdatePositionAndRotation (System.Boolean fromAnimatorMove) (at Assets/Opsive/UltimateCharacterController/Scripts/Character/CharacterLocomotion.cs:517)
Opsive.UltimateCharacterController.Character.CharacterLocomotion.OnAnimatorMove () (at Assets/Opsive/UltimateCharacterController/Scripts/Character/CharacterLocomotion.cs:1453)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.OnAnimatorMove () (at Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotion.cs:1764)

Can't say I know why it happens, but it happens fairly often while I am testing things during playtime in the editor, pausing the game.
Help would be very much appreciated.
 
Looks like it's unable to get a reference to a collider. This might happen if there was a collider somewhere in the character's children at startup which then got moved/removed/disabled.
 
Top