Download

UnloadStreamLevel not throwing callback

Hello,

here is my code:

FLatentActionInfo unloadInfo;
unloadInfo.UUID = 2;
unloadInfo.Linkage = 1;
unloadInfo.CallbackTarget = this;
unloadInfo.ExecutionFunction = “LevelStreamLoadEnded”;
UGameplayStatics::UnloadStreamLevel(this->mOwner, this->mCurrentLoadedLevel, unloadInfo, true);

“this” is an object derived from UObject.

The level gets unloaded BUT my **callbackfunction **never gets called.

Callbackfunction in .h file

UFUNCTION(BlueprintCallable)
void LevelStreamLoadEnded();

Callbackfunction in .cpp file

void ULevelNavigation::LevelStreamLoadEnded()
{
UE_LOG(LogTemp, Warning, TEXT(“LEVEL STREAM ENDED”));
}

Version: 4.24.3

What i am doing wrong?

SOLVED.
It seems that only in PIE the Unload function never realy completes.