UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MovieSceneCameraCutEditorHandler.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#if WITH_EDITOR
6
7#include "CoreMinimal.h"
11
12class AActor;
17
18namespace UE::MovieScene
19{
20
22struct FCameraCutPlaybackCapability;
24struct FSequenceInstance;
25
28{
31};
32
34struct FPreAnimatedCameraCutEditorTraits : FPreAnimatedStateTraits
35{
36 // Key type is the viewport to restore location/rotation/FOV on.
37 using KeyType = FLevelEditorViewportClient*;
38 using StorageType = FPreAnimatedCameraCutEditorState;
39
41 static StorageType CachePreAnimatedValue(KeyType InKey);
42
43 void RestorePreAnimatedValue(KeyType InKey, const StorageType& CachedValue, const FRestoreStateParams& Params);
44};
45
46// Make it possible to declare our storage below with a forward-declared FLevelEditorViewportClient.
47template<>
48struct THasAddReferencedObjectForComponent<FLevelEditorViewportClient*>
49{
50 static constexpr bool Value = false;
51};
52
54struct FPreAnimatedCameraCutEditorStorage : TPreAnimatedStateStorage<FPreAnimatedCameraCutEditorTraits>
55{
57};
58
61{
62 Cache,
63 Restore,
65};
66
71{
74 const FSequenceInstance& InSequenceInstance,
76
78 void SetCameraCut(
81
83 static void CachePreAnimatedValue(
85 const FSequenceInstance& SequenceInstance);
89 const FSequenceInstance& SequenceInstance,
91
92private:
93
95 FLevelEditorViewportClient& ViewportClient,
97 UCameraComponent* CameraComponent,
100 FLevelEditorViewportClient& ViewportClient);
101
102private:
104 const FSequenceInstance& SequenceInstance;
106};
107
108} // namespace UE::MovieScene
109
110#endif // WITH_EDITOR
111
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition Actor.h:257
Definition MovieSceneEntitySystemLinker.h:113
Definition Object.h:95
Definition World.h:918
@ Restore
Definition GenericApplicationMessageHandler.h:116
Definition Linker.cpp:38
Definition ConstraintsManager.h:14
Definition IMovieScenePlayer.h:57