Navigation
API > API/Plugins > API/Plugins/AutomationUtils > API/Plugins/AutomationUtils/UAutomationUtilsBlueprintLibrary
Description
Blocks the game thread until all in-flight asset compilation finishes and the render thread has drained the followup commands the compile workers posted. Use this in test teardown before deleting assets whose shader compilation might still be in flight; otherwise GC can destroy an FMaterial mid-compile and hit ~FMaterial's RenderingThreadCompilingShaderMapId == 0 assert.
| Name | FinishAllAssetCompilation |
| Type | function |
| Header File | /Engine/Plugins/Experimental/AutomationUtils/Source/AutomationUtils/Public/AutomationUtilsBlueprintLibrary.h |
| Include Path | #include "AutomationUtilsBlueprintLibrary.h" |
| Source | /Engine/Plugins/Experimental/AutomationUtils/Source/AutomationUtils/Private/AutomationUtilsBlueprintLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Automation")
static void FinishAllAssetCompilation()