First Person Perspective
The First Person Perspective Item connects a Character Item to the local player’s arms and visible equipment. It resolves the base/slot, coordinates visibility, and supplies procedural spring motion. Item Actions remain on the Character Item and own use, reload, damage, and other gameplay.

Prepare arms and build the item
- In Character Manager, choose first-person or both-perspective support. Assign First Person Arms and their controller; Update Character creates the arm base beneath FirstPersonObjects.
- Prepare the intended hand’s Item Slot and ID. Add obstructing full-body renderer objects to Third Person Objects for local first-person hiding.
- In Item Manager, select a source model for a new Character Item, enable Add First Person Item, and assign First Person Base, First Person Visible Item, and Item Parent. Use a scene arm instance when adding an Item Slot; the manager cannot add components to an arm prefab asset.
- Match the Character Item’s Slot ID and both perspective slots. Assign a controller where the base/item needs animation and add its action on the main Character Item.
- Select Build Item and inspect the hierarchy. For perspective changes to an existing item, configure the component/hierarchy explicitly or preserve custom actions/States and rebuild a replacement. Update Item handles identity/actions rather than perspective construction.
The builder applies Overlay, creates a spatial Audio Source on a visible item when absent, and adds/reuses Animator plus Child Animator Monitor for supplied controllers, with root motion disabled and Always Animate. Generic arms need animations matching their rig; see First Person Arms.
Configure the base and visible object
FirstPersonObjects follows the attached camera and activates the bases required by dominant equipped items. First Person Base Object identifies an arm/base and creates its runtime spring pivot.
| Field | Starting value / purpose |
|---|---|
| Object | Base controlled by the perspective, normally arms. A manual object must contain First Person Base Object or sit below an Item Slot. |
| First Person Base Object ID | 0; resolves the runtime item’s base on the active model. |
| Visible Item | Empty; assign the separate weapon/model when the base does not already contain it. |
| Spawn Parent | Optional identified child below the matching Item Slot. |
| Local Spawn Position / Rotation / Scale | (0, 0, 0) / (0, 0, 0) / (1, 1, 1) for runtime placement. |
| Additional Control Objects | Empty; identified additional first-person bases for deliberate multi-base control. |
Items sharing arms must reference the same Object and their separate Visible Item models. UCC updates the shared base once per frame and toggles item models independently. A dedicated base can activate as one unit; an invisible spell/body action can omit the separate Visible Item. Use base Always Active only when it should remain available without dominant equipment.
Runtime prefabs can resolve existing arms by base ID and slot instead of bundling them. Model switches repeat base/slot/spawn-parent lookup, reparent the visible item, apply local transform, resolve additional controls, and refresh Animator monitors. Provide equivalent IDs on every supported model.
Tune motion and overlay
Use States for aim/sprint offsets. Tune one motion group at a time after the base animation works.
| Group | Controls and inspected defaults |
|---|---|
| Position Spring | Base Position Offset plus Position Offset; Position Exit Offset for unequip. Fall impact 0.2, softness 10, retract 2, maximum input velocity 25; movement/platform slide and input scaling feed the spring. |
| Rotation Spring | Rotation Offset and exit (30, 0, 0); look/strafe/vertical/platform sway. Fall impact 10, softness 5, ground sway multiplier 0.5, maximum input velocity 15. |
| Pivot Position/Rotation Spring | Runtime-pivot forces, landing, lean, and secondary motion without editing the authored rig. |
| Shake | Speed 0.15, amplitude (4, 2, 1); set speed 0 for no idle shake. |
| Bob | Ground contact required by default; maximum input velocity 100. |
| Step | Minimum squared-velocity threshold 5, softness 4, force scale 1. Set Step Min Velocity to 0 to disable step impacts. |
If high speed/sensitivity produces unstable motion, reduce Position/Rotation Input Velocity Scale and cap input velocity before retuning all spring coefficients. See Springs.
Keep Overlay in First Person Culling Mask and choose the first-person camera route: Second Camera for the built-in pipeline, Render Pipeline with configured URP/HDRP support, or None for ordinary scene depth. Configure the renderer feature/custom pass separately; the perspective component supplies neither.
Verify visibility and lifecycle
Equip and inspect arms, hand attachment, and visible model. Look, strafe, walk, jump/land, lean, and ride a moving platform; motion should settle to rest. Use/reload and confirm synchronized animation and correct first-person action references.
Approach a wall, then unequip/re-equip and inspect overlay, exit offsets, and shared-base availability. Switch perspective/model and check IDs, materials, and visible-item colliders: they disable outside first person and enable only with the active first-person item.
For absent arms, inspect FirstPersonObjects, Object/base ID, active model, slot, and spawn transform. For an obstructing body, update only the intended Third Person Objects. For wrong animation, inspect controllers/monitors and required item parameters. For missing overlay, inspect camera layers/pipeline setup before item offsets.
Save inventory, equipped sets, model, and camera perspective, then rebuild presentation instead of serializing spring values/visibility. First-person objects belong to local players or spectators; non-local non-spectators require third-person equipment. Custom visual/module state still needs explicit network ownership.
Access the perspective
using Opsive.UltimateCharacterController.FirstPersonController.Items;
using UnityEngine;
FirstPersonPerspectiveItem firstPersonItem =
characterItem.FirstPersonPerspectiveItem as FirstPersonPerspectiveItem;
if (firstPersonItem != null) {
GameObject visibleObject = firstPersonItem.GetVisibleObject();
Transform springPivot = firstPersonItem.PivotTransform;
}
Offset properties refresh spring rest values during Play Mode. Prefer authored States/presets for mode changes and leave pickup/equip/perspective/unequip lifecycle calls to Character Item and Item Abilities.