Docs

Guides

Save, respawn and mesh swap

Keep marks through a respawn, a save game, a level change or a mesh swap with GetSnapshot and RestoreSnapshot.

  • Respawn. On the old pawn, before it is destroyed, call GetSnapshot and keep the struct (game instance, player state or controller). On the new pawn's Begin Play call RestoreSnapshot. Marks come back in the same places, with the same look and draw order. The restore is pose-exact: restored vs never cleared, 0.007 to 0.107 % of pixels over the 90 frames after the restore (0.007 % right after it, 0.107 % at the worst frame, 0.049 % 90 frames later).
  • Save game / level change. FSkinMarkSnapshot is a SaveGame struct in a compact binary form, about 0.21 KB per mark: put it in your SaveGame object.
  • Mesh swap. Set Skeletal Mesh, another LOD, the Nanite version or another mesh with the same skeleton: marks are rebuilt on the new mesh. Marks whose bone the new mesh lacks are skipped with a warning.
  • Snapshots from older versions still load (morph weights then count as none).

Every field of the snapshot: Blueprint and C++ API.