Configure first person¶
First person works out of the box on the sample pawns and the shipped characters. This page covers the choices you make for your own characters and items. Background: First person system.
Where to find the settings:
- How first person behaves (mode, arm limits, camera, motion): the AC_FirstPersonSystem component of the pawn Blueprint (
SandboxCharacter_MoverandSandboxCharacter_CMC), category FirstPerson in the Details panel. One value for every body the pawn shows, including the retargeted characters. Change it on both sample pawns (or on each pawn you use): each pawn's component has its own values. - What to draw (meshes, retargeter, eye offset, camera and head bones): a
PDA_FirstPersonSetupdata asset per body, in/GASPALS/Systems/FirstPersonSystem/Setups. The pawns useDA_FirstPersonSetup_UEFN(Default Setup onAC_FirstPersonSystem); each retargeted character names its own in its First Person Setup class default (for exampleDA_FirstPersonSetup_MannyonBP_RetargetedCharacter_Manny).
To try any change: play, press 1 until the view is in first person (third person, top-down, side-scroller, then first person by default), and press M to cycle the characters (UEFN mannequin, Kellan, Manny, Quinn).
Choose a mode¶
| You want | Mode |
|---|---|
| Classic shooter view with body and shadow | FirstPersonOverlay (default) |
| The same, without weapons clipping into walls | FirstPersonOverlaySplit (needs arms and body meshes) |
| Immersive view of the real third-person animation | TrueFirstPerson |
| A skeleton with non-standard spine names | TrueFirstPerson |
Set First Person Mode (First Person > General) on the pawn's AC_FirstPersonSystem; every character the pawn shows uses it. A character on another skeleton whose setup has no Retargeter uses TrueFirstPerson whatever the mode, with an on-screen warning. See Modes for what each one looks like.
Set the meshes¶
Open the body's PDA_FirstPersonSetup asset (double-click it in the Content Browser):
- Full Meshes: add the body mesh first, then clothing and accessories. A headless body variant avoids seeing the inside of the head; without one, leave the list empty and the component reuses the third-person mesh with the head bone hidden.
- Materials: nothing to do. Material overrides are copied from the third-person component that uses the same mesh, or whose mesh name followed by Mesh Suffix (
_FP) starts the first-person mesh name:SKM_Herogives its materials toSKM_Hero_FPandSKM_Hero_FP_Arms. Name your first-person meshes that way. - Body component: on a pawn, Third Person Mesh Name (First Person > Setup) on
AC_FirstPersonSystemnames the body component to copy from. A retargeted character returns its body fromGetVisualBodyMesh(theSkeletalMeshcomponent by default). - Save the asset.
To create a setup for a new character, duplicate DA_FirstPersonSetup_Manny and follow Add a retargeted character.
Split meshes¶
FirstPersonOverlaySplit needs an arms mesh (arms and hands, cut at the clavicles) and a body mesh without arms, neck and head. Author them in your DCC tool (keep a small overlap at the shoulders), or generate a first version with the editor utility EUB_SplitFirstPersonMesh:
- Duplicate your body mesh twice (right-click > Duplicate):
SKM_Hero_FP_ArmsandSKM_Hero_FP_NoArms. - Open
/GASPALS/Systems/FirstPersonSystem/Tools/EUB_SplitFirstPersonMesh, click Class Defaults and set Source Mesh (your body mesh), Arms Target (SKM_Hero_FP_Arms) and Body Target (SKM_Hero_FP_NoArms) under First Person > Mesh Split. Arm Root Bones (clavicle_l,clavicle_r) and Head Root Bones (neck_01) decide what counts as arm and head; change them only for other bone names. Compile and save. - Right-click the utility in the Content Browser > Run Editor Utility Blueprint.
- Save the two target meshes. They keep LOD 0 only.
- Put them in the setup's Arms Meshes and Body Meshes, add your clothing meshes to Body Meshes if you have any, and set First Person Mode to
FirstPersonOverlaySpliton the pawns.
Warning
The utility overwrites the target meshes. Never point it at meshes you authored by hand. Source Mesh, Arms Target and Body Target are empty by default: set all three before running it. Without a Source Mesh it stops with the message Split: could not read Source Mesh.
Check it: play in first person. Look down and at a wall with the rifle: the arms and the rifle stay in front of the wall while the body shows below. No orange warning starting with GASPALS First Person should appear.
Place the camera at the eyes¶
The camera sits on the head bone plus Eye Offset (First Person > Setup > Camera), set in the body's PDA_FirstPersonSetup (for example DA_FirstPersonSetup_Manny). The offset is in centimeters, in the mesh's space at the reference pose: X right, Y forward, Z up. On the UEFN mannequin the head bone is at the eyes (offset (0, 0, 0)); on UE5 mannequins and MetaHumans it is at the base of the skull, so the shipped characters use (0, 12, 0): 12 cm forward.
- Play, switch to the character in first person, and look straight ahead, then fully down.
- If you see the inside of the head or the chest, increase Y (forward). If the view is too high or too low, change Z. X moves the camera sideways. Stop, change Eye Offset in the setup, save and play again.
- Equip the rifle (hold T, scroll to the rifle, release) and aim (hold Right Button). The sights should line up with the screen center. The ADS hand targets use the same offset, so fixing the eye position also fixes the sights. If one item still sits too close or too far while aiming, change ADSHand Offset on its
DA_Equipment_<Item>data asset.
Tune the look-down and camera behavior¶
On the pawn's AC_FirstPersonSystem (overlay modes):
| Setting | Category | Effect |
|---|---|---|
| First Person Arm Pitch Down Limit (45) | First Person > Arms | How far the arms follow the view down before the spine leans. Lower values lean more. |
| First Person Arm Pitch Up Limit (90) | First Person > Arms | The same looking up. |
| First Person Camera Follow Lean (0.75) | First Person > Camera | 1: the camera moves forward with the leaning head. 0: the camera stays, the body moves back. |
| First Person Camera Vertical Smoothing (12) | First Person > Camera | How quickly the camera height follows the body. Lower = softer crouches and landings. |
| First Person Max Root Yaw Lag (60) | First Person > Camera | Degrees the body may lag behind the view before it turns with it. |
Check it: play in first person, look fully down while standing and while walking, and crouch (C).
For the field of view, see Change the first-person field of view. For hand and item sway, see Tune first-person motion.
Give an item first-person poses¶
Items without a first-person overlay show their third-person overlay in first person. To add one:
- Duplicate
ABP_OverlayFirstPerson_Rifle(/GASPALS/Systems/OverlaySystem/FirstPerson/Rifle), name itABP_OverlayFirstPerson_<Item>. - Open it, click Class Defaults and, under Overlay > Poses, set each pose variable (Stand Relax Idle, Stand Ready Idle, Stand Aim Idle, the walk, run and crouch variants...): its animation and its curve map, as for a third-person overlay (see Pose Anim Blueprints). Keep the first-person curves:
enable_cr_fp_stable_arms,enable_cr_fp_stable_head,enable_cr_fp_ads,enable_cr_fp_aimoffset, andenable_handik_lorenable_handik_rfor the support hand. Turn Can Aim (Overlay > General) off for an item that cannot aim. Compile and save. - Set it as Overlay Pose FP in the item's data asset (
DA_Equipment_<Item>, in/GASPALS/Systems/EquipmentSystem/Data). - Make sure the item mesh has an
ADSsocket (the sight point) and aHandIKsocket (support hand), or set ADSSocket and Hand IKSocket in the data asset to your socket names.
Check it: play in first person, equip the item, then stand, walk, crouch and aim. The arms should use your poses, the support hand should stay on the item, and aiming should bring the ADS socket to the screen center.
Turn first person off¶
Either:
- turn Enable First Person (First Person > General) off on each pawn's
AC_FirstPersonSystem: FirstPerson is removed from the available perspectives; or - remove
FirstPersonfrom Allowed Perspectives on each pawn'sAC_CameraSystem(see Limit the perspectives).
The first-person meshes are then never built. To strip it completely, also delete AC_FirstPersonSystem from the pawns, and remove FirstPerson from Allowed Perspectives (otherwise the camera shows a warning); the retargeted characters and items have no first-person component.
Check it: play and press 1 repeatedly: the first-person view never comes.
First person only¶
On each pawn's AC_CameraSystem, set Allowed Perspectives to FirstPerson only and Camera Perspective (the start view) to FirstPerson; if you leave the start view at ThirdPerson, the game still starts in first person but shows an on-screen warning. The perspective input (1) then does nothing.
- Cover: sticky cover never switches to third person: set First Person Sticky Cover to
Disabledon the pawn's cover component, or leave it, it acts the same. - Ragdoll: the ragdoll keeps the first-person view. Its default view (Camera Perspective During Ragdoll,
ThirdPerson) is not allowed, so the switch is skipped, without a warning while that setting is at its default.
Check it: play: the game starts in first person with no orange warning, and 1 does nothing.