engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
IAsyncProgress类 参考abstract

Interface for checking the progress of asynchronous tasks. 更多...

#include <IAsyncProgress.h>

Public 成员函数

virtual TOptional< float > GetCompletion ()=0
 Gets the task's completion percentage, if available (0.0 to 1.0, or unset). 更多...
 
virtual FText GetStatusText ()=0
 Gets a human readable text for the task's current status. 更多...
 
virtual FSimpleDelegate & OnProgressChanged ()=0
 A delegate that is executed if the task's progress changed.
 
virtual ~IAsyncProgress ()
 Virtual destructor.
 

详细描述

Interface for checking the progress of asynchronous tasks.

成员函数说明

◆ GetCompletion()

virtual TOptional< float > IAsyncProgress::GetCompletion ( )
pure virtual

Gets the task's completion percentage, if available (0.0 to 1.0, or unset).

Tasks should make a best effort to calculate a completion percentage. If the calculation is expensive, the value should be cached and only updated in regular intervals or whenever is appropriate. If a completion percentage cannot be computed at all, the optional return value should be unset.

返回
Completion percentage value.
参见
GetStatusText

◆ GetStatusText()

virtual FText IAsyncProgress::GetStatusText ( )
pure virtual

Gets a human readable text for the task's current status.

返回
Status text.
参见
GetCompletion

该类的文档由以下文件生成: