Navigation
Unreal Engine C++ API Reference > Runtime > GeometryCore > Util
References
Module | GeometryCore |
Header | /Engine/Source/Runtime/GeometryCore/Public/Util/ProgressCancel.h |
Include | #include "Util/ProgressCancel.h" |
Syntax
class FProgressCancel
Remarks
FProgressCancel is intended to be passed to long-running computes to do two things: 1) provide progress info back to caller 2) allow caller to cancel the computation
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
TFunction< bool()> | CancelF | |
![]() |
TArray< FMessageInfo > | Warnings |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | AddWarning
(
const FText& MessageText, |
|
![]() |
void | AdvanceCurrentScopeProgressBy
(
float Amount |
|
![]() |
void | AdvanceCurrentScopeProgressToward
(
float TargetProgressFrac, |
Advance current progress a fraction of the way toward a target value For example: if progress is .5, AdvanceProgressToward(1, .5) will take a half step to 1 and set progress to .75 As with all public progress function, progress is expressed relative to the current active progress range and cannot go backward. |
![]() |
bool | Cancelled () |
|
![]() |
void | ||
![]() ![]() |
FProgressScope | CreateScopeTo
(
FProgressCancel* ProgressCancel, |
|
![]() |
float | GetCurrentScopeDistanceTo
(
float TargetProgressFrac |
|
![]() |
float | ||
![]() ![]() |
float | GetProgress () |
|
![]() ![]() |
FText | ||
![]() |
void | SetCurrentScopeProgressTo
(
float NewProgressFrac |
Note: This function will leave the current progress unchanged if the target value is less than the current progress it will not allow the progress value to go backward. |
![]() |
void | SetMaxMessageDepth
(
int32 ScopeDepth |
|
![]() |
void | SetProgressMessage
(
const FText& Message |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FMessageInfo | ||
![]() |
FProgressScope | Simple helper to track progress in a local scope on an optional FProgressCancel Will still work if the ProgressCancel is null (just does nothing in that case) |
Enums
Type | Name | Description | |
---|---|---|---|
![]() |
EMessageLevel |