LoginSignup
0
0

More than 5 years have passed since last update.

Unreal Engine 4メモ:タイマを使って簡単に非同期処理

Last updated at Posted at 2018-08-21

演出などで、タイミングをちょっとだけ調整したい時等に、
コードはシーケンシャルに書けると言う利点があります。

TimerSample.cpp
// 1秒待つ
TFunction<void(void)> fp = []() {
    // 1秒後に実行したい、非同期処理
};
GetWorld()->GetTimerManager().SetTimer(RemoveTimerHandle, (TFunction<void(void)>&&)fp, 1.0f, false, -1.0f);
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0