Async(EAsyncExecution::ThreadPool, [=]
{
log();
Async(EAsyncExecution::TaskGraphMainThread, [=]
{
StaticMeshComponent->SetWorldRotation(FRotator(n=n+10, 10, 10));
});
});
Ue多线程+更新主线程
于 2023-04-28 17:12:58 首次发布
Async(EAsyncExecution::ThreadPool, [=]
{
log();
Async(EAsyncExecution::TaskGraphMainThread, [=]
{
StaticMeshComponent->SetWorldRotation(FRotator(n=n+10, 10, 10));
});
});