Hello:
1. Character controller variant (Ultimate Character Controller, UFPS, etc).
Ultimate Character Controller
2. Unity version (include which SRP, beta Unity versions aren't supported)
Unity 2022.3.50f1 URP
3. Bug description
Shoot NPC, before NPC die, console print stack error, game stuck. But not every time, just sometimes.
4. Steps to reproduce from a fresh project
- Install UCC, UIS, Behavior Designer, A* Pathfinding, FoW (fog of war).
- Add Hider to NPC, when NPC is outside the view distance, NPC hide all renderers, this feature powered by FoW.
- Shoot NPC when NPC in the view distance (displayed).
5. The full error message (if any)
Full stack errors here (print many times):
1. Character controller variant (Ultimate Character Controller, UFPS, etc).
Ultimate Character Controller
2. Unity version (include which SRP, beta Unity versions aren't supported)
Unity 2022.3.50f1 URP
3. Bug description
Shoot NPC, before NPC die, console print stack error, game stuck. But not every time, just sometimes.
4. Steps to reproduce from a fresh project
- Install UCC, UIS, Behavior Designer, A* Pathfinding, FoW (fog of war).
- Add Hider to NPC, when NPC is outside the view distance, NPC hide all renderers, this feature powered by FoW.
- Shoot NPC when NPC in the view distance (displayed).
5. The full error message (if any)
Full stack errors here (print many times):
Code:
NullReferenceException: Object reference not set to an instance of an object
Opsive.UltimateCharacterController.Character.CharacterLocomotion.EnableColliderCollisionLayer (System.Boolean enable) (at Assets/Opsive/UltimateCharacterController/Scripts/Character/CharacterLocomotion.cs:1771)
Opsive.UltimateCharacterController.Character.CharacterLocomotion.Move (System.Single horizontalMovement, System.Single forwardMovement, System.Single deltaYawRotation) (at Assets/Opsive/UltimateCharacterController/Scripts/Character/CharacterLocomotion.cs:566)
Opsive.UltimateCharacterController.SimulationManager+SmoothedCharacter.Move (System.Boolean preMove) (at Assets/Opsive/UltimateCharacterController/Scripts/Game/SimulationManager.cs:169)
Opsive.UltimateCharacterController.SimulationManager.MoveCharacters (System.Boolean preMove, System.Single interpAmount) (at Assets/Opsive/UltimateCharacterController/Scripts/Game/SimulationManager.cs:739)
Opsive.UltimateCharacterController.SimulationManager.FixedMove () (at Assets/Opsive/UltimateCharacterController/Scripts/Game/SimulationManager.cs:679)
Opsive.UltimateCharacterController.SimulationManager.FixedUpdate () (at Assets/Opsive/UltimateCharacterController/Scripts/Game/SimulationManager.cs:668)
Last edited: