RealDocs

UAnimInstance::ClearMorphTargets

function Engine Blueprint Since 4.0
#include "Animation/AnimInstance.h"
Access: public Specifiers: ENGINE_APIBlueprintCallableUFUNCTION

Description

Resets all morph target weights on the owning skeletal mesh to zero. Use this to wipe any programmatically applied blend shapes before switching to a new expression set.

Caveats & Gotchas

  • This clears weights that were set via SetMorphTarget, but morph target curves driven by playing animations will be re-applied the next time the anim graph evaluates. To truly suppress them you must stop the animation or zero out the curves.
  • There is no per-target version of this clear — it zeros every morph target at once. If you only want to reset one shape, call SetMorphTarget with a value of 0.0 instead.

Signature

ENGINE_API void ClearMorphTargets();

Return Type

void

Example

Reset all facial morphs on dialogue end C++
void UMyAnimInstance::OnDialogueEnd()
{
	ClearMorphTargets();
}

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.