Error when not having camera attached to a character in the scene.

Shadowing

Member
UCC3

NullReferenceException: Object reference not set to an instance of an object
Opsive.UltimateCharacterController.Camera.CameraController.LateUpdate () (at Assets/Opsive/UltimateCharacterController/Scripts/Camera/CameraController.cs:576)

Use case: When testing out AI in a new scene
 
This error to apparently.

NullReferenceException: Object reference not set to an instance of an object
Opsive.UltimateCharacterController.Camera.CameraController.get_LookDirectionDistance () (at Assets/Opsive/UltimateCharacterController/Scripts/Camera/CameraController.cs:149)
Opsive.UltimateCharacterController.UI.CrosshairsMonitor.Update () (at Assets/Opsive/UltimateCharacterController/Scripts/UI/CrosshairsMonitor.cs:216)
 
What is the very first error that you are receiving? With just an AI agent you should not use the camera controller component or you should have it disabled. By default it'll disable itself if there isn't a valid character.
 
Top