[BUG] NullReferenceException When Running the Game with a Character Created with TPC

llor

New member
Character Controller Variant
Third Person Controller

Unity Version
Unity 2019.1.10f1 and 2018.2.0f2

Bug Description
The editor returns a Null Reference Exception error when trying to control a character created with the Third Person Controller.

Steps to Reproduce
I followed the video tutorial here (starting from the first of the series):

Error Message
NullReferenceException: Object reference not set to an instance of an object
Opsive.UltimateCharacterController.ThirdPersonController.Character.MovementTypes.Adventure.GetDeltaYawRotation (Single characterHorizontalMovement, Single characterForwardMovement, Single cameraHorizontalMovement, Single cameraVerticalMovement) (at Assets/Opsive/UltimateCharacterController/Scripts/ThirdPersonController/Character/MovementTypes/Adventure.cs:74)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotionHandler.GetDeltaYawRotation () (at Assets/Opsive/UltimateCharacterController/Scripts/Character/UltimateCharacterLocomotionHandler.cs:196)
Opsive.UltimateCharacterController.Game.KinematicObjectManager+KinematicCharacter.FixedMove (Boolean manualMove) (at Assets/Opsive/UltimateCharacterController/Scripts/Game/KinematicObjectManager.cs:200)
Opsive.UltimateCharacterController.Game.KinematicObjectManager.FixedUpdate () (at Assets/Opsive/UltimateCharacterController/Scripts/Game/KinematicObjectManager.cs:751)
 
You'll generally get this error if there isn't a camera hooked up to your character. Make sure you first run the scene setup:

 
Top