UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DirectLinkElementSnapshot.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Containers/Array.h"
6#include "DirectLinkCommon.h"
8#include "UObject/NameTypes.h"
9
10#define UE_API DIRECTLINK_API
11
12class FArchive;
13
14namespace DirectLink
15{
16class IReferenceResolutionProvider;
17class ISceneGraphNode;
18
19
27
28
42
43
44
46{
47public:
48 FElementSnapshot() = default;
50
52
54
56 UE_API FElementHash GetDataHash() const; // #ue_directlink_sync: serialize hashs
58
60 UE_API void UpdateNodeData(ISceneGraphNode& Node) const;
61
62 FSceneGraphId GetNodeId() const { return NodeId; }
63
64 template<typename T>
65 bool GetValueAs(FName Name, T& Out) const
66 {
67 return DataSnapshot.GetValueAs(Name, Out);
68 }
69
70private:
71 FSceneGraphId NodeId;
72 mutable FElementHash DataHash = InvalidHash;
73 mutable FElementHash RefHash = InvalidHash;
74 FParameterStoreSnapshot DataSnapshot;
75 FReferenceSnapshot RefSnapshot;
76};
77
78} // namespace DirectLink
79
80#undef UE_API
#define UE_API
Definition SColorGradingComponentViewer.h:12
Definition Archive.h:1208
Definition NameTypes.h:617
Definition Array.h:670