Skip to content

Characters and visual overrides

Every GASPALS pawn is animated on one skeleton: the UEFN mannequin. The motion matching databases, overlay poses, traversal montages and Control Rigs are all built for it. To show a different character, GASPALS does not re-author any of that: it hides the mannequin and puts a visual override on top, a separate actor whose meshes copy the mannequin's pose through an IK Retargeter, every frame.

The template ships three visual overrides:

Character Blueprint Skeleton Retargeter
Manny BP_RetargetedCharacter_Manny SK_Mannequin (UE5) RTG_UEFN_to_UE5_Mannequin
Quinn BP_RetargetedCharacter_Quinn SK_Mannequin (UE5) RTG_UEFN_to_UE5_Mannequin
Kellan (MetaHuman) BP_RetargetedCharacter_Kellan metahuman_base_skel RTG_UEFN_to_Metahuman_nrw

All are in /GASPALS/Blueprints/RetargetedCharacters and derive from BP_RetargetedCharacter_Base.

In the demo, press M to cycle: UEFN mannequin, Kellan, Manny, Quinn, and back.

How it fits together

flowchart LR
    subgraph Pawn[Pawn: SandboxCharacter_Mover or _CMC]
        UEFN[Hidden UEFN mesh<br>character Anim Blueprint<br>motion matching, overlays, IK]
        FPLogic[Hidden UEFN first-person<br>logic mesh]
        CA[Child Actor component<br>VisualOverride]
        Mgr[AC_VisualOverrideManager]
        FPS[AC_FirstPersonSystem]
    end
    subgraph Visual[Visual override actor]
        Body[SkeletalMesh<br>ABP_Retarget_*]
        Cloth[Clothing, face, hair]
        FPM[Generated first-person meshes]
        Setup[First Person Setup<br>DA_FirstPersonSetup_*]
    end
    Mgr -->|spawns class| CA --> Visual
    UEFN -->|RetargetPoseFromMesh| Body
    Body -->|leader pose or<br>post-process copy| Cloth
    Setup -.->|read by| FPS
    FPS -->|builds| FPM
    FPLogic -->|first-person overlay<br>retarget| FPM
  1. The pawn keeps its UEFN mannequin mesh. It runs the full character Anim Blueprint and all gameplay animation. When a visual override is active, it is hidden but keeps ticking.
  2. AC_VisualOverrideManager (on the pawn) holds the override class in its replicated VisualOverride variable. When it changes, ApplyVisualOverride sets the class on the pawn's VisualOverride Child Actor component, hides the pawn's third-person body mesh, and re-runs InitializeModularSystems so every system picks up the new meshes.
  3. The override actor has a body mesh (SkeletalMesh) running a small retarget Anim Blueprint (ABP_Retarget_UE5, ABP_Retarget_Kellan): a Retarget Pose From Mesh node reading the parent skeletal mesh (the pawn's hidden mannequin), then the hand IK Control Rig. Clothing follows the body by leader pose, or by its own post-process Anim Blueprint for meshes on another skeleton (the MetaHuman hoodie and shoes).
  4. First person is handled by the pawn's AC_FirstPersonSystem; the character carries no first-person component. The character tells it what to draw through two interfaces that BP_RetargetedCharacter_Base implements: GetFirstPersonSetup (BPI_FirstPersonCharacter) returns the First Person Setup set on each character (a PDA_FirstPersonSetup asset such as DA_FirstPersonSetup_Manny), and GetVisualBodyMesh (BPI_VisualOverride) returns the body mesh (SkeletalMesh). The component builds the first-person meshes on the character actor and retargets the first-person overlay pose from the pawn's hidden first-person logic mesh with the setup's Retargeter. Mode, arm, camera and motion settings are the pawn's and apply to every character.

The override body ticks after the pawn mesh (the base class adds a tick prerequisite on the body from GetVisualBodyMesh), so the retargeted pose is never a frame behind.

Which meshes the systems use

The pawn function GetVisualMeshes returns the visible third-person mesh and the first-person lead mesh: the override's meshes when one is active, the pawn's own otherwise. The systems are initialized like this:

System Works on
Overlay (anim layers) The pawn's UEFN mesh. The override gets the overlay through retargeting.
Equipment Links the overlay layers on the pawn's UEFN meshes; attaches the items to the visual meshes (sockets overlay_*) and computes hand IK in the visual mesh's hand bones.
Camera Attaches to the visual meshes: root in third person, the VB Camera virtual bone in first person.
Cover, traversal, ragdoll The pawn (capsule, movement, UEFN mesh). The override shows the result.
First person The pawn's AC_FirstPersonSystem, with the override's First Person Setup; the first-person meshes are created on the override actor.

Ragdoll simulates on the pawn's UEFN mesh with its physics asset; the override needs no physics asset for it.

Choosing the character

The list of overrides is on the game mode, not on the pawn: GM_Sandbox > Visual Overrides Soft (soft class references), in this order by default: Kellan, Manny, Quinn.

The data-driven console variable DDCvar.VisualOverride selects the entry for every pawn in the world:

Value Character
-1 (project default) No global character: each pawn shows its Default Visual Override (none by default, so the UEFN mannequin; see Per pawn).
0, 1, 2... The entry at that index in Visual Overrides Soft.

M (IA_NextVisualOverride) asks the server (PC_Sandbox.NextVisualOverride, then GM_Sandbox.CycleVisualOverride) to add one to the variable, wrapping back to -1. You can also type DDCvar.VisualOverride 1 in the console. The value lasts for the editor session, so it carries over between Play sessions.

To start with a given character, set the variable's default in Project Settings > Engine > Data Driven CVars.

Per pawn

Each pawn's AC_VisualOverrideManager has two settings (GASPALS > Characters > General, editable per instance):

Setting Default Use
Follow Global Visual Override true Use GM_Sandbox's list and DDCvar.VisualOverride as above. Off: the pawn always uses Default Visual Override and ignores M.
Default Visual Override None (UEFN mannequin) The character this pawn shows whenever it does not take a character from the global list: Follow Global Visual Override is off, the game mode is not GM_Sandbox (or a child), or DDCvar.VisualOverride is -1 (or not declared in your project; an orange message at play start then lists the missing console variables, see Installation).

Use it for pawns with a fixed look (an NPC that is always Kellan), or to use the characters in your own game mode. With Follow Global Visual Override on, the default also stands in for the -1 entry of the cycle: a pawn whose default is Manny shows Manny at -1, then Kellan, Manny and Quinn as M cycles.

Requirements of the manager

  • The global selection needs GM_Sandbox (or a child) and the DDCvar.VisualOverride variable (copy the project settings from Installation). Without them the pawn uses its Default Visual Override.
  • The pawn needs a Child Actor component tagged VisualOverride, attached directly to its third-person mesh, and must implement BPI_ModularSystems (the manager re-runs InitializeModularSystems after every change). The sample pawns have both.
  • Setting Visual Override on the manager component in a pawn's Details panel does nothing by itself: the override is applied when the value replicates, not from a default.
  • The selection is made on the server; clients receive the character class through replication.

Requirements for a character

Requirement Why
An IK Retargeter from IK_UEFN_Mannequin to the character's IK Rig, with a Curve Remap op Third-person pose and first-person overlays. The curve op carries the hand IK curves.
A VB Camera virtual bone from root to head First-person camera.
root, head, hand_l, hand_r bones Camera attachment, first-person head, equipment hand IK.
UE-standard spine, clavicle and neck names (spine_01..spine_05, clavicle_l/r, neck_01) The first-person overlay Control Rigs. Other skeletons can use the TrueFirstPerson mode.
The seven overlay_* sockets on the Skeleton Where equipment is attached: overlay_rifle, overlay_pistol, overlay_bow, overlay_box, overlay_barrel, overlay_binoculars, overlay_torch.
A first-person setup (PDA_FirstPersonSetup) set as the character's First Person Setup First-person meshes, retargeter and eye offset. Without one, the body mesh is reused in first person with the head hidden, and a warning is shown.
The body mesh returned by GetVisualBodyMesh Camera, equipment and first person use it. The base class returns SkeletalMesh; override the function if your body is another component.

The UE5 mannequin and MetaHuman skeletons in the plugin already have the virtual bone and the sockets. The step-by-step guide is Add a retargeted character.

Cost

One IK retarget costs about 0.16 ms per character (measured in the editor). First person adds a second retarget for the overlay and keeps the hidden first-person logic mesh ticking. The visible body mesh only animates when rendered.

Characters on the UEFN skeleton

A character that is itself on the UEFN skeleton (another outfit for the mannequin) needs no retargeting: give it a copy-pose Anim Blueprint that copies the pose with Copy Pose From Mesh instead (duplicate ABP_Retarget_UE5, retarget it to the UEFN skeleton and replace the Retarget Pose From Mesh node). Turn the node's Use Attached Parent option on, so it reads the pawn's hidden mannequin, and Copy Curves on, so the hand IK curves reach the character; with it off, the hand IK curves read 0. Its first-person setup needs no Retargeter. The plugin ships no copy-pose Anim Blueprint (the sample characters are all retargeted).