UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CookEvents.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#include "Containers/Array.h"
9
10class ITargetPlatform;
11namespace UE::Cook { class ICookInfo; }
12#endif // WITH_EDITOR
13
14#if WITH_EDITOR
15
16namespace UE::Cook
17{
18
24enum class ECookEvent : uint32
25{
47};
48
55{
56public:
58 : Data(InData)
59 {
60 }
61 FCookEventContext(const UE::Cook::FCookEventContext& Other)
62 : Data(Other.Data)
63 {
64 }
65
70 bool IsCooking() const;
75 ICookInfo* GetCookInfo() const;
81 const ITargetPlatform* GetTargetPlatform() const;
82
113
114private:
116};
117
118
119inline bool FCookEventContext::IsCooking() const
120{
121 return Data.TargetPlatform != nullptr;
122}
123
124inline ICookInfo* FCookEventContext::GetCookInfo() const
125{
126 return Data.CookInfo;
127}
128
129inline const ITargetPlatform* FCookEventContext::GetTargetPlatform() const
130{
131 return Data.TargetPlatform;
132}
133
134} // namespace UE::Cook
135
136#endif // WITH_EDITOR
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Object.h:95
GeometryCollection::Facades::FMuscleActivationData Data
Definition MuscleActivationConstraints.h:15
Definition CookOnTheFly.h:19
void HarvestCookRuntimeDependencies(FObjectSaveContextData &Data, UObject *HarvestReferencesFrom)
Definition ObjectSaveContext.h:70
Definition SoftObjectPath.h:56