Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/CookOnTheSide
Inheritance Hierarchy
- UObject
- FTickableEditorObject
- FExec
- ICookInfo
- UCookOnTheFlyServer
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Classes/CookOnTheSide/CookOnTheFlyServer.h |
| Include | #include "CookOnTheSide/CookOnTheFlyServer.h" |
Syntax
class UCookOnTheFlyServer :
public UObject,
public FTickableEditorObject,
public FExec,
public UE::Cook::ICookInfo
Constructors
No constructors are accessible with public or protected access.
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | BroadcastFileserverPresence
(
const FGuid& InstanceId |
Broadcast the fileserver's presence on the network | |
| void | Demote PackageDatas in any queue back to Idle, and eliminate pending requests. | ||
| void | Cancel the currently running cook by the book (needs to be called from the game thread) | ||
| void | Clear all the previously cooked data all cook requests from now on will be considered recook requests | ||
| void | ClearCachedCookedPlatformDataForPlatform
(
const ITargetPlatform* TargetPlatform |
Clear any cached cooked platform data for a platform and call ClearCachedCookedPlatformData on all UObjects. | |
| void | |||
| void | ClearPlatformCookedData
(
const ITargetPlatform* TargetPlatform |
Clear all the previously cooked data for the platform passed in | |
| void | |||
| void | DumpStats () |
Dumps cooking stats to the log. Run from the exec command "Cook stats". | |
| void | EvaluateGarbageCollectionResults
(
bool bWasDueToOOM, |
||
| ECookInitializationFlags | GetCookFlags () |
||
| ECookMode::Type | GetCookMode () |
||
| double | Returns the configured amount of idle time before forcing a GC | ||
| uint32 | Returns the configured number of packages to process before GC | ||
| uint32 | Returns the configured number of packages to process before partial GC | ||
| void | GetShaderLibraryPaths
(
const ITargetPlatform* TargetPlatform, |
Calculate the ShaderLibrary codedir and metadatadir | |
| bool | Return whether the tick needs to take any action for the current session. | ||
| void | Initialize
(
ECookMode::Type DesiredCookMode, |
Initialize *this so that either CookOnTheFly or CookByTheBook can be started and ticked | |
| bool | Is the local CookOnTheFlyServer initialized to run CookByTheBook (find all required packages and cook them)? | ||
| bool | Is the local CookOnTheFlyServer in a cook session in CookByTheBook Mode? | ||
| bool | IsCookingDLC () |
Is the local CookOnTheFlyServer cooking a DLC plugin rather than a Project+Engine+EmbeddedPlugins? | |
| bool | Is the local CookOnTheFlyServer running in the editor? | ||
| bool | Is the local CookOnTheFlyServer initialized to run CookOnTheFly (accept connections from game executables, cook what they ask for)? | ||
| bool | Is the local CookOnTheFlyServer initialized to run as a CookWorker (connect to a Director cooker cooking CBTB or COTF, cook what it assigns to us)? | ||
| bool | Is the CookDirector (local CookOnTheFlyServer for SPCook or MPDirector, or the remote MPDirector for a CookWorker) initialized to run CookByTheBook? | ||
| bool | Is the CookDirector (local CookOnTheFlyServer for SPCook or MPDirector, or the remote MPDirector for a CookWorker) initialized to run CookOnTheFly? | ||
| bool | IsInSession () |
Is the local CookOnTheFlyServer in a cook session in any CookMode? Used to restrict operations when cooking and reduce cputime when not cooking. | |
| bool | Is the local CookOnTheFlyServer initialized to run in real time mode (respects the timeslice), (e.g. in Editor)? | ||
| bool | Is the local CookOnTheFlyServer in a mode that uses ShaderCodeLibraries rather than storing shaders in the Packages that use them? | ||
| bool | Is the local CookOnTheFlyServer using ZenStore (cooked packages are stored in Zen's Cache storage rather than as loose files on disk)? | ||
| void | Log stats for the CookWorker; this is called before the connection to the director is terminated. | ||
| void | MarkPackageDirtyForCooker
(
UPackage* Package, |
Marks a package as dirty for cook causes package to be recooked on next request (and all dependent packages which are currently cooked) | |
| void | MarkPackageDirtyForCookerFromSchedulerThread
(
const FName& PackageName |
Helper function for MarkPackageDirtyForCooker. | |
| void | MaybeMarkPackageAsAlreadyLoaded
(
UPackage* Package |
MaybeMarkPackageAsAlreadyLoaded Mark the package as already loaded if we have already cooked the package for all requested target platforms this hints to the objects on load that we don't need to load all our bulk data | |
| uint32 | |||
| FOnCookByTheBookFinished & | |||
| FOnCookByTheBookStarted & | |||
| void | OnObjectModified
(
UObject* ObjectMoving |
Callbacks from editor | |
| void | OnObjectPropertyChanged
(
UObject* ObjectBeingModified, |
||
| void | OnObjectSaved
(
UObject* ObjectSaved, |
||
| void | OnObjectUpdated
(
UObject* Object |
||
| void | |||
| void | PostLoadPackageFixup
(
UE::Cook::FPackageData& PackageData, |
Execute class-specific special case cook postloads and reference discovery on a given package. | |
| void | Callbacks from UObject globals. | ||
| void | Print detailed stats from the cook. | ||
| void | Queue a cook by the book cancel (can be called from any thread) | ||
| bool | RecompileChangedShaders
(
const TArray< const ITargetPlatform* >& TargetPlatforms |
Recompile any global shader changes if any are detected then clear the cooked platform data so that they can be rebuilt | |
| bool | RequestPackage
(
const FName& StandardFileName, |
RequestPackage to be cooked | |
| bool | RequestPackage
(
const FName& StandardPackageFName, |
RequestPackage to be cooked This function can only be called while the cooker is in cook by the book mode | |
| void | ResetCook
(
TConstArrayView< TPair< const ITargetPlatform*, bool >> TargetPlatforms |
Clear platforms' explored flags for all PackageDatas and optionally clear the cookresult flags. | |
| void | RunCookList
(
ECookListOptions CookListOptions |
Log a list of all of the transitively requested packages. | |
| void | SetGarbageCollectType
(
uint32 ResultFlagsFromTick |
||
| bool | Return whether EDLCookInfo verification has NOT been rendered useless by settings such as CookFilter. | ||
| void | Terminate the CookWorker session | ||
| void | Shutdown *this from running in CookOnTheFly mode | ||
| void | StartCookByTheBook
(
const FCookByTheBookStartupOptions& CookByTheBookStartupOptions |
Start a cook by the book session Cook on the fly can't run at the same time as cook by the book | |
| bool | StartCookOnTheFly
(
FCookOnTheFlyStartupOptions InCookOnTheFlyOptions |
Initialize cook on the fly server | |
| void | Force stop whatever pending cook requests are going on and clear all the cooked data Note CookOnTheFly clients may not be able to recover from this if they are waiting on a cook request to complete | ||
| uint32 | TickCookByTheBook
(
const float TimeSlice, |
Tick CBTB until it finishes or needs to yield. Should only be called when in CookByTheBook Mode. | |
| uint32 | TickCookOnTheFly
(
const float TimeSlice, |
Tick COTF until it finishes or needs to yield. Should only be called when in CookOnTheFly Mode. | |
| uint32 | Tick CookWorker until it finishes or needs to yield. Should only be called when in CookWorker Mode. | ||
| void | |||
| bool | Connect to the CookDirector host, Initialize this UCOTFS, and start the CookWorker session | ||
| void | WaitForRequests
(
int TimeoutMs |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. |
Overridden from FTickableObjectBase
| Type | Name | Description | |
|---|---|---|---|
| TStatId | GetStatId () |
FTickableEditorObject interface used by cook on the side. | |
| bool | IsTickable () |
Virtual that can be overloaded by the inheriting class. | |
| void | Tick
(
float DeltaTime |
Pure virtual that must be overloaded by the inheriting class. |
Overridden from FExec
| Type | Name | Description | |
|---|---|---|---|
| bool | Exec_Editor
(
UWorld* InWorld, |
FExec interface used in the editor. |
Overridden from ICookInfo
| Type | Name | Description | |
|---|---|---|---|
| UE::Cook::FInstigator | GetInstigator
(
FName PackageName |
Return the instigator that first caused the package to be requested by the cook. | |
| TArray< UE::Cook::FInstigator > | GetInstigatorChain
(
FName PackageName |
Return the chain of instigators that caused the package to be requested by the cook. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FCookByTheBookStartupOptions | |||
| FCookOnTheFlyServerInterface | |||
| FCookOnTheFlyStartupOptions |
Enums
| Type | Name | Description | |
|---|---|---|---|
| ECookAction | |||
| ECookOnTheSideResult | |||
| EIdleStatus |
Typedefs
| Name | Description |
|---|---|
| FOnCookByTheBookFinished | |
| FOnCookByTheBookStarted | |
| FPollFunction |
Constants
| Name | Description |
|---|---|
| ActiveCOTFS | Cook on the fly server. |
| CookByTheBookFinishedEvent | |
| CookByTheBookStartedEvent | Cook events that can be listenned to. |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | UCookOnTheFlyServer now uses a more complicated private GC scheme; HasExceededMaxMemory is no longer used and returns false |