UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MovieSceneChannelEditorData.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "HAL/Platform.h"
7#include "Math/Color.h"
8#include "Misc/Optional.h"
10#include "Templates/Function.h"
11#include "UObject/NameTypes.h"
12#include "Misc/FrameNumber.h"
13#include "Misc/Attribute.h"
14
18class UObject;
20struct FFrameNumber;
21struct FFrameRate;
22struct FGuid;
24
25#if WITH_EDITOR
26
32{
33 /*
34 * Default Constructor
35 */
37
38 /*
39 * Construction from a name and display text. Necessary when there is more than one channel.
40 *
41 * @param InName The unique name of this channel within the section
42 * @param InDisplayText Text to display on the sequencer node tree
43 * @param InGroup (Optional) When not empty, specifies a name to group channels by
44 * @param bInEnabled (Optional) When true the channel is enabled, if false it is not.
45 */
47
48 /*
49 * Set the identifiers for this editor data
50 *
51 * @param InName The unique name of this channel within the section
52 * @param InDisplayText Text to display on the sequencer node tree
53 * @param InGroup (Optional) When not empty, specifies a name to group channels by
54 */
56
57 /*
58 * Get property metadata that corresponds to the given key.
59 *
60 * @param InKey The requested key to get metadata for
61 */
62 MOVIESCENE_API FString GetPropertyMetaData(const FName& InKey) const;
63
64 /*
65 * Get the amount that all of this channel's keys are offset by
66 */
67 MOVIESCENE_API FFrameNumber GetOffsetTime(const UMovieSceneSection* InSection) const;
68
70 uint8 bEnabled : 1;
76 uint32 SortOrder;
80 bool bInvertValue;
84 mutable bool bPreserveRatio;
85
87 FName Name;
100 FText DisplayText;
104 FText Group;
109 /* Optional. If unspecified IKeyArea::CreateCurveEditorModel will create a fallback. */
118 TAttribute<FFrameNumber> KeyOffset;
119};
120
121
125template<typename T>
127{
132 {}
133
140 static TMovieSceneExternalValue<T> Make()
141 {
143 Result.OnGetExternalValue = GetValue;
144 return Result;
145 }
146
155 {
156 return Bindings ? Bindings->GetCurrentValue<T>(InObject) : TOptional<T>();
157 }
158
161
164};
165
166
171{
172 static MOVIESCENE_API const FText ChannelX;
173 static MOVIESCENE_API const FText ChannelY;
174 static MOVIESCENE_API const FText ChannelZ;
175 static MOVIESCENE_API const FText ChannelW;
176
177 static MOVIESCENE_API const FText ChannelR;
178 static MOVIESCENE_API const FText ChannelG;
179 static MOVIESCENE_API const FText ChannelB;
180 static MOVIESCENE_API const FText ChannelA;
181
185
186 static MOVIESCENE_API const FName TooltipText;
188};
189
190
191#endif // WITH_EDITOR
OODEFFUNC typedef void(OODLE_CALLBACK t_fp_OodleCore_Plugin_Free)(void *ptr)
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define DECLARE_DELEGATE_RetVal_ThreeParams(ReturnValueType, DelegateName, Param1Type, Param2Type, Param3Type)
Definition DelegateCombinations.h:72
uint8_t uint8
Definition binka_ue_file_header.h:8
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition NameTypes.h:617
Definition Text.h:385
Definition TrackInstancePropertyBindings.h:143
ValueType GetCurrentValue(const UObject &Object)
Definition TrackInstancePropertyBindings.h:220
Definition IMovieScenePlayer.h:90
Definition Attribute.h:17
Definition AndroidPlatformMisc.h:14
Definition UnrealString.h.inl:34
Definition MovieSceneSection.h:243
Definition Object.h:95
T::FDataType GetValue(const UBlackboardComponent &Blackboard, const FName &Name, FBlackboard::FKey &InOutCachedKey, const typename T::FDataType &DefaultValue)
Definition ValueOrBBKey.h:51
UE_STRING_CLASS Result(Forward< LhsType >(Lhs), RhsLen)
Definition String.cpp.inl:732
Definition FrameNumber.h:18
Definition FrameRate.h:21
Definition Guid.h:109
Definition Color.h:48
Definition MovieSceneEvaluationTemplateInstance.h:38
Definition MovieSceneSequenceID.h:13
Definition Optional.h:131
Definition WeakObjectPtrTemplates.h:25