UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MovieSceneConstrainedSection.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "UObject/NameTypes.h"
8#include "UObject/Interface.h"
9#include "MovieSceneSection.h"
10#include "ConstraintsManager.h"
11#include "ConstraintChannel.h"
12#include "MovieSceneConstrainedSection.generated.h"
13
14struct FGuid;
15
20UINTERFACE(MinimalAPI)
26
31{
32public:
33
36
38
39
40 /*
41 * If it has that constraint with that Name
42 */
43 virtual bool HasConstraintChannel(const FGuid& InGuid) const = 0;
44
45 /*
46 * Get constraint with that name
47 */
49
50 /*
51 * Add Constraint channel
52 */
54
55 /*
56 * Remove Constraint channel
57 */
59
60 /*
61 * Get The channels
62 */
64
65 /*
66 * Replace the constraint with the specified name with the new one
67 */
69
70 /*
71 * Added Delegate
72 */
74
75 /*
76 * What to do if the constraint object has been changed, for example by an undo or redo. By default nothing to be overriden if needed.
77 */
78 virtual void OnConstraintsChanged() {};
79
80 /*
81 * SetToNotRemoveChannel when we are told a constraint is removed, we need this sometimes sincet his will be destructive
82 */
84
85 /*
86 * Removed delegate that get's added by the track editor
87 */
89
90
91protected:
92
94 bool bDoNotRemoveChannel = false;
95
96};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UINTERFACE(...)
Definition ObjectMacros.h:780
Definition IDelegateInstance.h:14
Definition NameTypes.h:617
Definition MovieSceneConstrainedSection.h:31
bool bDoNotRemoveChannel
Definition MovieSceneConstrainedSection.h:94
virtual TArray< FConstraintAndActiveChannel > & GetConstraintsChannels()=0
virtual void RemoveConstraintChannel(const UTickableConstraint *InConstraint)=0
virtual bool HasConstraintChannel(const FGuid &InGuid) const =0
FConstraintChannelAddedEvent & ConstraintChannelAdded()
Definition MovieSceneConstrainedSection.h:73
DECLARE_MULTICAST_DELEGATE_TwoParams(FConstraintChannelAddedEvent, IMovieSceneConstrainedSection *, FMovieSceneConstraintChannel *)
MOVIESCENETRACKS_API void SetDoNoRemoveChannel(bool bInDoNotRemoveChannel)
Definition MovieSceneConstrainedSection.cpp:13
FDelegateHandle OnConstraintRemovedHandle
Definition MovieSceneConstrainedSection.h:88
virtual void ReplaceConstraint(const FName InConstraintName, UTickableConstraint *InConstraint)=0
FConstraintChannelAddedEvent OnConstraintChannelAdded
Definition MovieSceneConstrainedSection.h:93
virtual FConstraintAndActiveChannel * GetConstraintChannel(const FGuid &InConstraintGuid)=0
MOVIESCENETRACKS_API IMovieSceneConstrainedSection()
Definition MovieSceneConstrainedSection.cpp:8
virtual void OnConstraintsChanged()
Definition MovieSceneConstrainedSection.h:78
virtual void AddConstraintChannel(UTickableConstraint *InConstraint)=0
Definition Array.h:670
Definition Interface.h:19
Definition MovieSceneConstrainedSection.h:22
Definition ConstraintsManager.h:74
Definition ConstraintChannel.h:103
Definition Guid.h:109
Definition ConstraintChannel.h:23