Unity Third Person Camera Error

//in line 52 change _target.collider by _target.GetComponent.<CharacterController>();
//***#InvalidCastException: Cannot cast from source type to destination type. ThirdPersonCamera.Awake () (at Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonCamera.js:52)

to Fix Error
What type is '_target.collider'? Usually that returns a Collider, not a CharacterController. Try using**///

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.