ddd

C++ code posted by ddd
created at 23 Oct 05:20

Edit | Back
1
2
3
4
5
6
7
8
9
10
void UGGameInstance::FadeOpenLevel(FName levelName, bool useLoadingWidget/* = true*/)
{
  UGGameViewportClient* gameViewportClient = Cast<UGGameViewportClient>(GetWorld()->GetGameViewport());
  if (gameViewportClient)
  {
    _reserveOpenLevelName = levelName;
    gameViewportClient->FadeForOpenLevel();
    gameViewportClient->FadeInCompleted.BindUObject(this, &ThisClass::ReserveOpenLevel);
  }
}
398 Bytes in 2 ms with coderay