UE4 SetTimer中传参

 void AMyGameMode::RespawnPlayerWithDelay(APlayerController * Player, float Delay)
 {
     FTimerHandle UniqueHandle;
     FTimerDelegate RespawnDelegate = FTimerDelegate::CreateUObject( this, &AMyGameMode::RespawnPlayer, Player );
	 // call RespawnPlayer function after 5s without loop, 参数是 Player
     GetWorldTimerManager().SetTimer( UniqueHandle, RespawnDelegate, 5.0f, false );
 }

你可能感兴趣的:(unreal,engine,unreal4,unreal)