Docs

Get started

Quick start

Five steps from an enabled plugin to blood and wound marks on your own character, with the right trace for guns, projectiles and melee.

Five steps#

  1. Enable the plugin. Edit > Plugins > search "SkinMark" > tick it > restart the editor. Turn on "Show Plugin Content" in the Content Browser settings to see SkinMark Content (materials, presets).
  2. Add the component. Open your character Blueprint > Add > Skin Mark. One component per character covers every skeletal mesh on it (body, head, modular parts).
  3. Preload the presets. In the Details panel, under Skin Mark | Hits > Preloaded Presets, add the presets this character can take, for example DA_Hit_Bullet and DA_Hit_Slash from SkinMark Content/Presets. Their materials then load at Begin Play, so the first hit costs nothing extra.
  4. Call Apply Hit. Trace for the character and call Apply Hit on its Skin Mark component with the hit, a preset and a damage value. The trace must hit the character at all. The UE5 Third Person template's character ignores Visibility traces, so use Line Trace For Objects (Pawn, PhysicsBody, WorldStatic, WorldDynamic; ignore the shooter). A hit on the capsule is fine.
    • Which trace: on the UE5 Third Person template the mesh and the capsule both ignore the Visibility channel, so Line Trace By Channel (Visibility) passes through the character and nothing happens. Use Line Trace For Objects with Object Types Pawn, PhysicsBody, WorldStatic and WorldDynamic (so walls still stop the shot), with the shooter in Actors to Ignore, or a trace channel your character blocks. Apply Hit then finds the skin under the capsule (or another collision shape) along the same ray. A hit on a shield, armour or weapon mesh on the character is not traced on to the skin. A hit that finds no skin logs one warning.
    • Gun: Line Trace For Objects (Pawn, PhysicsBody, WorldStatic, WorldDynamic; shooter ignored) from the muzzle > Out Hit > Get Component by Class (Skin Mark) on Hit Actor > Apply Hit (Hit, DA_Hit_Bullet, Damage 1).
    • Projectile: in OnComponentHit / Event Hit, pass its Hit to Apply Hit (a hit on the capsule is fine).
    • Melee: in the weapon's notify state tick, sweep the blade (Sphere Trace For Objects, Pawn and PhysicsBody, attacker ignored, from the last tip position to the current one). Pass the hit with DA_Hit_Slash and set Direction (advanced pin) to the swing direction.
  5. Press Play and hit. Each hit leaves the preset's marks on the skin. If none appear, see Troubleshooting.

Even faster#

Apply Hit To Actor (category Skin Mark) takes just the Hit, preset and damage, and finds or adds the component on the hit actor. Adding the component in the Blueprint is still better, because presets preload.

All the calls are listed in Blueprint and C++ API.