Navigation
API > API/Runtime > API/Runtime/CoreUObject
Context passed into UE_COOK_DEPENDENCY_FUNCTION functions to provide calling flags and receive hash output.
| Name | FCookDependencyContext |
| Type | struct |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/Cooker/CookDependencyContext.h |
| Include Path | #include "Cooker/CookDependencyContext.h" |
Syntax
struct FCookDependencyContext
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FCookDependencyContext
(
void* InHasher, |
Cooker/CookDependencyContext.h | ||
FCookDependencyContext
(
void* InHasher, |
InHasher is void* to mask the implementation details of the hashbuilder. See Update function. | Cooker/CookDependencyContext.h |
Structs
| Name | Remarks |
|---|---|
| FErrorHandlerScope | Private implementation struct used for AddErrorHandlerScope. |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ErrorHandlers | TArray< TUniqueFunction< FString(FString &&)>, TInlineAllocator< 1 > > | Cooker/CookDependencyContext.h | ||
| Hasher | void * | Cooker/CookDependencyContext.h | ||
| OnLog | TUniqueFunction< void(ELogVerbosity::Type, FString &&, bool)> | Cooker/CookDependencyContext.h | ||
| PackageName | FName | Cooker/CookDependencyContext.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FErrorHandlerScope ErrorHandlerScope
(
TUniqueFunction< FString(FString&&)>&& ErrorHandler |
Add a function that will be removed when the return value goes out of scope, to modify error strings reported inside the scope before passing them on to higher scopes or the error consumer. | Cooker/CookDependencyContext.h | |
FName GetPackageName() |
Get the name of the package being considered | Cooker/CookDependencyContext.h | |
void Log
(
ELogVerbosity::Type, |
Send a message to the cook dependency context with the given severity. | Cooker/CookDependencyContext.h | |
void LogError
(
FString Message |
Calls Log(Error, Message) and ReportError. | Cooker/CookDependencyContext.h | |
void LogInvalidated
(
FString Message |
Calls Log(Display, Message) and ReportInvalidated. | Cooker/CookDependencyContext.h | |
void ReportError () |
Reports failure to compute the hash (e.g. because a file cannot be read). | Cooker/CookDependencyContext.h | |
void ReportInvalidated () |
Reports that current evaluation of the function is different from all previous evaluations for a reason that cannot be reported as data passed into Update. | Cooker/CookDependencyContext.h | |
void * SetHasher
(
void* NewHasher |
Set a new hasher and return the old one. | Cooker/CookDependencyContext.h | |
void Update
(
const void* Data, |
Update the hashbuilder for the key being constructed (e.g. TargetDomainKey for cooked packages) with the given Data of Size bytes. | Cooker/CookDependencyContext.h |