The Camera Controller connects a local player character to the camera, while the active View Type decides the camera’s position, rotation, and look direction. Configure it after the scene managers and character exist, then choose a first-person, third-person, or switchable perspective that matches the game.

This minimal capsule example uses Adventure with Look Offset (0.5, 0, -4). The character has moved through its position API; the camera keeps the same framing. See Adventure for the paired frames.
A player-controlled character needs a Camera Controller so character facing and item use can follow the camera’s look direction. AI agents and remote network characters do not need their own player camera.
Start with a working camera
- Follow Quick Setup to add the scene managers, select a camera perspective, and create the camera.
- On Camera Controller, assign Character, or leave Init Character On Awake enabled and ensure the intended character has the Player tag.
- Choose the active first-person or third-person View Type. When both perspectives are installed, choose both defaults and enable Can Change Perspectives only if the player should switch between them.
- Configure the horizontal and vertical look mappings through Input.
- Enter Play Mode and verify the camera before adding fading, post processing, split screen, or project-specific states.
If Init Character On Awake is enabled without an assigned character, the Camera Controller searches for a GameObject with the Player tag. It disables itself when it cannot find one.
Choose a perspective and View Type
- First person: Use a first-person View Type when the camera should represent the character’s own view. First-person arms and items may use a separate child camera, which affects post-processing choices.
- Third person: Use a third-person View Type when the character should remain visible and the camera needs an offset, orbit, or fixed movement style.
- Both perspectives: Add a valid first-person and third-person View Type, choose each default, and enable Can Change Perspectives. Test the transition in both directions with the character’s items equipped.
A View Type calculates where the camera should move and which direction the character or an item should look; the Camera Controller applies that result and coordinates the character assignment. Start with View Types, then compare the included View Types. For an external camera workflow, use the supported Cinemachine integration rather than replacing the character-camera connection.

For example, Third Person Combat exposes Look Offset, Field Of View, Collision Radius and Pitch Limit on the selected View Type.
Configure the important choices
| Choice | Use it when |
|---|---|
| Init Character On Awake and Character | The camera should attach automatically at startup or follow an explicitly assigned local character. Assigning null to Character at runtime disables the controller. |
| Anchor, Auto Anchor, and Auto Anchor Bone | The camera should be positioned relative to a particular Transform or humanoid bone. A moving body-part anchor introduces more visible motion than the character root. |
| Anchor Offset | The selected anchor needs a stable positional offset before the View Type applies its own movement. |
| First Person View Type and Third Person View Type | The project includes the corresponding perspectives and needs a default for each one. |
| Can Change Perspectives | Both first-person and third-person View Types exist and the player is allowed to switch between them. |
| Can Zoom | The camera may enter its zoom behavior. The active View Type and equipped items can still reject zoom. |
| Zoom State | Zoom should activate a named state on the camera and character, such as the default Zoom state. |
Configure look controls and zoom
View Types read horizontal and vertical look values from the character’s Player Input implementation. Use the Input guide to choose the input implementation, mapping names, sensitivity, smoothing, controller behavior, and cursor handling.
For zoom, enable Can Zoom and keep Zoom State aligned with the state presets that change the camera, character, or item. In Play Mode, test zoom with no item and with each relevant equipped item: the Camera Controller, active View Type, and active item must all allow it.
Continue by camera workflow
- Camera motion and aiming: View Types explains how the active View Type supplies rotation, position, and look direction.
- Character or obstacle visibility: Object Fader covers fading the character when the camera is close and fading geometry that blocks the view.
- Rendering effects: Post Processing explains the different camera targets used by first-person and third-person rendering.
- Local multiplayer and mirrors: Split Screen covers per-player cameras, material swapping, viewports, UI, and input assignment.
Verify in Play Mode
- Confirm that the camera remains enabled and the Console does not report a missing character or a character without Ultimate Character Locomotion.
- Move the look input. The active View Type should rotate or position the camera, and character facing or item aiming should use the expected look direction.
- If both perspectives are configured, switch in both directions and confirm that the intended first-person and third-person View Types become active.
- Start and stop zoom. Confirm that the expected field of view or offset changes occur and that the configured Zoom State activates and clears.
- Walk near walls and through tight spaces. Confirm that the camera does not clip or reveal unwanted character geometry; add Object Fader only when the selected View Type needs it.
- For split screen, confirm that each camera follows its assigned character, renders only its viewport, and responds to the correct player’s input.
Troubleshooting
| Symptom | Check | Fix |
|---|---|---|
| The Camera Controller disables itself at startup. | Character is empty and no valid character has the Player tag. | Assign the local character or correct its tag before entering Play Mode. |
| Look input does not move the camera. | The character’s Player Input implementation, horizontal or vertical look mappings, or cursor state may not match the project. | Follow Input and verify the configured mapping values in Play Mode. |
| Perspective switching does nothing. | One perspective View Type is missing or Can Change Perspectives is disabled. | Add valid defaults for both perspectives and enable switching. |
| Zoom input does nothing. | Can Zoom, the active View Type, or an equipped item may reject zoom. | Test without an item, verify Can Zoom, then check the selected View Type and item zoom settings. |
| The camera has excessive motion. | Anchor or Auto Anchor Bone may follow an animated body part. | Use a more stable anchor or tune Anchor Offset for the intended view. |
Developer reference
Set Character to change the followed character, call SetPerspective when both perspective defaults exist, or call SetViewType for a View Type already added to the Camera Controller:
using UnityEngine;
using Opsive.Shared.Camera;
using Opsive.Shared.Utility;
using Opsive.UltimateCharacterController.Camera;
public class MyObject : MonoBehaviour
{
[Tooltip("The character that should be assigned to the camera.")]
[SerializeField] private GameObject m_Character;
/// <summary>
/// Assigns the character and switches to the third-person Combat View Type.
/// </summary>
private void Start()
{
var camera = CameraUtility.FindCamera(null);
if (camera == null) {
return;
}
var cameraController = camera.GetComponent<CameraController>();
cameraController.Character = m_Character;
cameraController.SetPerspective(false);
var viewTypeName = "Opsive.UltimateCharacterController.ThirdPersonController.Camera.ViewTypes.Combat";
cameraController.SetViewType(TypeUtility.GetType(viewTypeName), false);
}
}
The Camera Controller also exposes Unity events and events through the built-in Event System:
using Opsive.Shared.Events;
using Opsive.UltimateCharacterController.Camera.ViewTypes;
EventHandler.RegisterEvent<ViewType, bool>(cameraGameObject, "OnCameraChangeViewTypes", OnChangeViewType);
EventHandler.RegisterEvent<bool>(character, "OnCameraChangePerspectives", OnChangePerspective);
EventHandler.RegisterEvent<bool>(cameraGameObject, "OnCameraZoom", OnZoom);
OnCameraChangeViewTypes supplies the View Type and whether it was activated, OnCameraChangePerspectives supplies whether the new perspective is first person, and OnCameraZoom supplies whether zoom is active. Unregister each listener when its subscribing object is destroyed.