diff --git a/Source/StudyFrameworkPlugin/Private/SFGameInstance.cpp b/Source/StudyFrameworkPlugin/Private/SFGameInstance.cpp index 3e745217b8edb8ab8be89469c0b812e9be19386a..18e3375d053088bafe304e9983b8259ea6bd200d 100644 --- a/Source/StudyFrameworkPlugin/Private/SFGameInstance.cpp +++ b/Source/StudyFrameworkPlugin/Private/SFGameInstance.cpp @@ -376,6 +376,13 @@ void USFGameInstance::PrepareWithStudySetup(ASFStudySetup* Setup) PrepareWithStudySetupAllNodes(ParticipantSequenceNumber, ParticipantID, bRecoverParticipantData); } } + + //this needs to be done directly to not have one frame at the beginning which is not faded out! + if (IsInitialized()) + { + InitFadeHandler(StudySetup->FadeConfig); + } + UpdateHUD("Wait for Start"); } //Continue / Next Participant / Restart Study @@ -433,13 +440,7 @@ void USFGameInstance::PrepareWithStudySetupAllNodes(int NewParticipantSequenceNu } } } - - - if (IsInitialized()) - { - InitFadeHandler(StudySetup->FadeConfig); - } - UpdateHUD("Wait for Start"); + } void USFGameInstance::PreloadAllMaps(const TArray<USFCondition*>& Conditions)