在timer里
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Properties")
FTimerHandle Timer;
UFUNCTION(BlueprintCallable, Category = "FUNCTIONS")
void Timer_OK();
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Timer")
bool Timer_okk=false;
在源文件
GetWorld()->GetTimerManager().SetTimer(Timer,this,&Atimer::Timer_OK, 5.0f, true);
void Atimer::Timer_OK()
{
Timer_okk = true;
}
清除计时器
GetWorld()->GetTimerManager().ClearTimer(EndTimer);
07-08
07-08
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交