RealDocs

UAnimInstance::IsUsingMainInstanceMontageEvaluationData

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

Description

Returns whether this linked anim instance reads montage evaluation data from the main (owning) anim instance rather than maintaining its own. Relevant only for linked anim graphs.

Caveats & Gotchas

  • Only meaningful on linked anim instances — calling this on the main UAnimInstance itself always reflects the local state and the flag has no practical effect.
  • When true, slot node weights and montage positions are driven by the main instance, so directly playing montages on this linked instance may produce unexpected blending results.

Signature

bool IsUsingMainInstanceMontageEvaluationData() const { return bUseMainInstanceMontageEvaluationData; }

Return Type

bool

Example

Check before driving a linked montage C++
if (LinkedInstance && LinkedInstance->IsUsingMainInstanceMontageEvaluationData())
{
    // Drive montage through the main instance instead
    MainAnimInstance->Montage_Play(SomeMontage);
}

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.