UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SequencerAnimationOverride.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3#include "CoreTypes.h"
4#include "HAL/Platform.h"
5#include "UObject/Interface.h"
6#include "UObject/Object.h"
11
12#include "SequencerAnimationOverride.generated.h"
13
14#define UE_API ANIMGRAPHRUNTIME_API
15
20UINTERFACE(MinimalAPI, Blueprintable)
25
27{
29
30public:
31
32 // Whether this animation blueprint allows Sequencer to override this anim instance and replace it during Sequencer playback.
33 UFUNCTION(BlueprintNativeEvent, Category = "Sequencer", meta = (CallInEditor = "true"))
35
36 virtual bool AllowsCinematicOverride_Implementation() const { return false; }
37
38 // Should return a list of valid slot names for Sequencer to output to in the case that Sequencer is not permitted to override the anim instance.
39 // Will be chosen by the user in drop down on the skeletal animation section properties. Should be named descriptively, as in some contexts (UEFN), the user
40 // will not be able to view the animation blueprint itself to determine the mixing behavior of the slot.
41 UFUNCTION(BlueprintNativeEvent, Category = "Sequencer", meta = (CallInEditor = "true"))
43
45
46 static TScriptInterface<ISequencerAnimationOverride> GetSequencerAnimOverride(USkeletalMeshComponent* SkeletalMeshComponent)
47 {
48 if (TSubclassOf<UAnimInstance> AnimInstanceClass = SkeletalMeshComponent->GetAnimClass())
49 {
51 {
53 {
55 if (AnimOverride.GetObject())
56 {
57 return AnimOverride;
58 }
59 }
60 }
61 }
62 return nullptr;
63 }
64};
65
66
67#undef UE_API
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define UINTERFACE(...)
Definition ObjectMacros.h:780
#define UE_API
Definition SequencerAnimationOverride.h:14
Definition NameTypes.h:617
Definition SequencerAnimationOverride.h:27
static TScriptInterface< ISequencerAnimationOverride > GetSequencerAnimOverride(USkeletalMeshComponent *SkeletalMeshComponent)
Definition SequencerAnimationOverride.h:46
UE_API TArray< FName > GetSequencerAnimSlotNames() const
virtual bool AllowsCinematicOverride_Implementation() const
Definition SequencerAnimationOverride.h:36
UE_API bool AllowsCinematicOverride() const
virtual TArray< FName > GetSequencerAnimSlotName_Implementation() const
Definition SequencerAnimationOverride.h:44
Definition Array.h:670
Definition ScriptInterface.h:139
Definition SubclassOf.h:30
Definition AnimInstance.h:353
Definition Interface.h:19
Definition SequencerAnimationOverride.h:22