First Person Transform Look

Use First Person Transform Look when a special first-person camera should follow the position and rotation of scene Transforms, such as a view attached to the character’s head after death. It is intended for a transform-driven view, not ordinary first-person movement and aiming.

Unlike First Person Combat and Free Look, Transform Look does not have a matching Movement Type. Keep the first-person Movement Type required by the rest of the game and let the gameplay state or ability decide whether the character can move or act while this camera is active.

Set up Transform Look

  1. Select the camera with the Camera Controller component and expand View Types.
  2. Use the add control and select First Person Transform Look.
  3. Select the new row to show its settings.
  4. Assign Move Target to the Transform that should position the camera and Rotation Target to the Transform whose orientation the camera should follow. When the camera is already attached to a humanoid character, adding the View Type assigns the head as the move target and the hips as the rotation target automatically. Confirm both references instead of assuming they were found.
  5. Set Offset in the Move Target’s local space, then tune Collision Radius, Position Smoothing, and Rotational Lerp Speed while the target moves.
  6. Enable Restrict Pitch and Restrict Yaw when the camera should follow the Rotation Target without player look offsets. Disable an axis only when look input should adjust that axis.
  7. For a temporary view, keep Combat or Free Look selected in the Active column and as First Person View Type for normal play. Have the project’s death, cutscene, or other special flow activate Transform Look and restore the normal View Type afterward. Select Transform Look as active only when it should be the starting camera.
  8. On the character, keep a valid option selected under Ultimate Character Locomotion > Movement Types and in First Person Movement Type. Transform Look does not stop locomotion, aiming, or item use by itself.

See View Types for the shared Camera Controller workflow and Input for horizontal and vertical look mappings.

This example assigns Head Target as Move Target and Hips Target as Rotation Target, with both pitch and yaw restriction enabled.

First Person Transform Look assigns Head Target and Hips Target, uses Offset (0, 0.2, 0.2), and enables Restrict Pitch and Restrict Yaw.

Choose the target Transforms

Scenario Move Target Rotation Target Result
Follow a humanoid after death Head Hips The camera inherits animated head position while using the more stable body orientation.
Follow a vehicle seat or mounted viewpoint A seat or camera socket A stable vehicle or mount Transform The camera follows the seat’s local position while its base direction follows the mount.
Follow a scripted prop or rig A dedicated position Transform A dedicated orientation Transform Animation can control position and orientation independently.

Offset is transformed by Move Target, so the same values produce different world positions when the target rotates. Use a target with intentional local axes and test the full animation. The Rotation Target supplies its complete rotation, including roll, so use a stable Transform when animated tilt should not reach the camera.

If either target is missing when the character is attached, Transform Look tries to populate both. It uses the humanoid head and hips when available; otherwise it falls back to the character Transform. Assign both fields explicitly for a non-humanoid rig or a viewpoint that should not use those defaults.

Choose rotation and look input

Desired behavior Restrict Pitch Restrict Yaw Additional choice
The target controls the entire view Enabled Enabled Player look input adds no pitch or yaw offset.
The target controls facing but the player can look up and down Disabled Enabled Set Pitch Limit to the permitted vertical range.
The target supplies a base orientation while the player looks around Disabled Disabled Set Pitch Limit; yaw remains unrestricted.

When Restrict Pitch is disabled, Pitch Limit clamps the player-controlled pitch if its span is less than 180 degrees. A full 180-degree span permits unrestricted pitch. Transform Look has no yaw-limit field: disabling Restrict Yaw permits unrestricted player-controlled yaw around the Rotation Target.

When the View Type activates or its rotation is reset, each restricted axis starts at zero relative to the Rotation Target. An unrestricted axis receives the incoming pitch or yaw, so only player-controlled axes carry their orientation into Transform Look.

Tune position, rotation, and collision

  • Position Smoothing controls how quickly the camera follows the target position after activation. Set it to 0 for no positional smoothing; increase it when animated target motion should be softened.
  • Rotational Lerp Speed controls how closely the camera follows changes to the Rotation Target. A value of 1 follows the target rotation on each normal update, while lower values add rotational lag.
  • Collision Radius is the radius of the sphere cast from the Move Target toward the offset camera position. When that path is obstructed, the camera moves inward to avoid clipping.
  • Field Of View and Field Of View Damping come from the View Type base settings. Test them separately from Transform movement so framing changes are easy to identify.

Smoothing affects continued target motion. Switching between Transform Look and another first-person View Type does not use the included perspective Transition because that transition has no first-person-to-first-person mode. Add project-specific transition handling when entering or leaving the view must blend.

Compare the first-person options

Option What drives the camera Movement Type expectation Gameplay look direction
Transform Look Move and Rotation Target Transforms, plus optional player pitch and yaw offsets No dedicated pairing; the current first-person Movement Type remains responsible for character movement Character forward, even when the Rotation Target or player offset points the camera elsewhere
Combat Standard first-person look input and inherited camera motion First Person Combat Camera, character facing, reticle, and item direction are intended to stay coordinated
Free Look Independent camera input within its yaw configuration First Person Free Look First-person object or camera-anchor direction, which can differ from the visible camera direction

Choose Combat for normal camera-centered aiming and Free Look for an input-driven independent view. Choose Transform Look when an animated or scripted Transform should own the composition. Do not assume an equipped item will act along the visible Transform Look camera direction; test or disable gameplay actions during the special view.

Verify in Play Mode

  1. Start with the normal gameplay View Type, trigger the special state, and confirm that First Person Transform Look becomes active only when intended.
  2. Move and rotate both targets through their full animation. The camera should follow the Move Target’s local offset and the Rotation Target’s orientation without using the wrong bone or object.
  3. Place a wall between the Move Target origin and the offset position. The camera should move inward instead of clipping through the obstruction, then return as the path clears.
  4. Test vertical and horizontal look input with each required restriction enabled and disabled. Restricted axes should follow the target; unrestricted pitch should respect Pitch Limit; unrestricted yaw should rotate freely.
  5. Move, aim, and use an item if those actions are allowed in this state. The character should follow its existing Movement Type, and gameplay look queries should remain character-forward rather than camera-forward.
  6. Repeat with rapid target motion, animated roll, a low ceiling, and close walls. Tune smoothing, target choice, offset, and collision independently.
  7. Leave the special state and confirm that the intended normal View Type and first-person Movement Type are restored with working input.

Troubleshooting

Symptom Check Fix
The camera stays at the character origin or reports a missing target. Move Target or Rotation Target may be empty, especially on a non-humanoid character. Assign both Transforms explicitly and retest after the camera attaches to the character.
The camera is offset in an unexpected direction. Offset uses the Move Target’s local axes. Inspect the target orientation and tune the local offset while the target is selected.
Head animation creates unwanted tilt or roll. The Rotation Target may be the animated head or another rolling Transform. Use a more stable Rotation Target, such as the hips or a dedicated orientation Transform.
Look input does nothing on one axis. Restrict Pitch or Restrict Yaw may be enabled. Disable only the axis that the player should control; keep the other axis target-driven.
Player yaw rotates farther than intended. Transform Look has no yaw-limit setting when Restrict Yaw is disabled. Enable Restrict Yaw, or choose Free Look when a configurable yaw range is required.
The camera trails or appears frozen while the target moves. Position Smoothing may be too high, or Rotational Lerp Speed may be too low. Reduce position smoothing or increase rotational lerp speed, then compare fast target motion.
The camera pulls inward too early or clips near a wall. Collision Radius, Offset, or the target-to-camera path may not fit the space. Tune the radius and offset in the problem location and verify the target origin is appropriate.
A weapon, raycast, or interaction does not follow the visible camera. Transform Look reports character forward as its gameplay look direction. Disable those actions for the special state, or use Combat when camera-forward gameplay is required.
The character continues moving during a death or cutscene view. Transform Look does not select or disable a Movement Type. Make the state or ability that activates the camera also control locomotion and actions.
Entering or leaving the view snaps. The included Transition does not blend between two first-person View Types. Add project-specific first-person transition handling when a blended switch is required.

Related:

Developer details

TransformLook is a serializable ViewType that reports a first-person perspective. It does not inherit the standard FirstPerson View Type and has no RecommendedMovementType attribute. On attachment, missing target references are resolved to the humanoid head and hips when possible, or to the character Transform otherwise.

Move transforms Offset through the Move Target, sphere casts along that offset using Collision Radius, and applies Vector3.SmoothDamp with Position Smoothing. Rotate follows the Rotation Target with Quaternion.Slerp, then applies the optional pitch and yaw offsets. Pitch Limit is enforced only when pitch is unrestricted and the configured range spans less than 180 degrees.

Both LookDirection overloads return the Ultimate Character Locomotion rotation multiplied by forward. They do not return the Rotation Target or visible camera forward direction. Runtime selection uses CameraController.SetViewType(System.Type, bool), and the target View Type must already exist in the Camera Controller’s View Types list.