Skip to main content

B1AnimNotifyState_AttachDetachMesh

File: BlueClient2/Source/BlueClient/Animation/AnimNotifies/B1AnimNotify_AttachMesh.h / .cpp Base Class: UAnimNotifyState

Purpose

Attaches a Static Mesh to a socket for the duration of the notify range, then automatically detaches and destroys it on end. Preferred over B1AnimNotify_AttachMesh + B1AnimNotify_DetachMesh.

How to Add in the Editor

  1. Open an Animation Montage or Animation Sequence.
  2. Right-click on the Notify trackAdd Notify StateB1AnimNotifyState_AttachDetachMesh.
  3. Drag the right edge to set the duration, then configure properties in the Details panel.

Editor Properties

PropertyTypeDefaultDescription
SocketNameFNameSocket on the Skeletal Mesh to attach to
StaticMeshUStaticMesh*Static mesh asset to spawn and attach
LocationOffsetFVector(0,0,0)Local position offset
RotationOffsetFRotator(0,0,0)Local rotation offset
ScaleFVector(1,1,1)Scale of the spawned mesh
bDeleteOnlySelfCreatedMeshboolfalseIf true, only removes meshes spawned by this notify instance

Behavior

CallbackAction
NotifyBeginSpawns AStaticMeshActor, configures LOD/visibility, attaches to socket
NotifyEndDestroys the spawned mesh actor — called even on montage interruption
  • B1AnimNotifyState_AttachDetachMeshByData — data-table-driven variant (no direct mesh reference)
  • B1AnimNotifyState_HideOriginMesh — hides the character's original mesh while active
  • B1AnimNotifyState_AttachTemporaryMesh — runtime-resolved mesh variant