Camera delegate moved to OnEndFrame (game thread)

This commit is contained in:
doterop 2020-09-29 16:43:42 +02:00 committed by Marc Garcia Puig
parent 63b3071c9a
commit 0c6d27e8b7
1 changed files with 2 additions and 2 deletions

View File

@ -490,7 +490,7 @@ void ASceneCaptureSensor::BeginPlay()
Super::BeginPlay();
SendPixelsDelegate = FCoreDelegates::OnEndFrameRT.AddUObject(this, &ASceneCaptureSensor::SendPixels);
SendPixelsDelegate = FCoreDelegates::OnEndFrame.AddUObject(this, &ASceneCaptureSensor::SendPixels);
}
void ASceneCaptureSensor::Tick(float DeltaTime)
@ -511,7 +511,7 @@ void ASceneCaptureSensor::EndPlay(const EEndPlayReason::Type EndPlayReason)
Super::EndPlay(EndPlayReason);
SCENE_CAPTURE_COUNTER = 0u;
FCoreDelegates::OnEndFrameRT.Remove(SendPixelsDelegate);
FCoreDelegates::OnEndFrame.Remove(SendPixelsDelegate);
}
// =============================================================================