RealDocs

UAnimInstance::SetUseMainInstanceMontageEvaluationData

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

Description

Controls whether a linked anim instance uses montage evaluation data from the main anim instance instead of its own. Set this when a sub-graph needs to mirror the main instance's montage blending.

Caveats & Gotchas

  • • Changing this at runtime mid-montage can cause a one-frame pop in blend weights because the instance switches data sources immediately.
  • • Has no effect on the main UAnimInstance — it only changes behaviour for instances running inside a Linked Anim Graph node.

Signature

void SetUseMainInstanceMontageEvaluationData(bool bSet) { bUseMainInstanceMontageEvaluationData = bSet; }

Parameters

Name Type Description Default
bSet bool If true, this linked instance will read montage evaluation data from the main anim instance. —

Return Type

void

Example

Enable shared montage data on a linked instance C++
if (UAnimInstance* LinkedAnim = GetLinkedAnimInstance(LinkedAnimInstanceTag))
{
    LinkedAnim->SetUseMainInstanceMontageEvaluationData(true);
}

Version History

Introduced in: 5.0

Version Status Notes
5.6 stable —

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.