Navigation
API > API/Runtime > API/Runtime/GeometryCore
FGeometryResult represents a combined "success/failure/etc" state for a geometry operation along with a set of Error and Warning codes/messages.
| Name | FGeometryResult |
| Type | struct |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Util/ProgressCancel.h |
| Include Path | #include "Util/ProgressCancel.h" |
Syntax
struct FGeometryResult
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Util/ProgressCancel.h | |||
FGeometryResult
(
EGeometryResultType ResultType |
Util/ProgressCancel.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Errors | TArray< FGeometryError > | Util/ProgressCancel.h | ||
| Result | EGeometryResultType | Util/ProgressCancel.h | ||
| Warnings | TArray< FGeometryWarning > | Util/ProgressCancel.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddError
(
FGeometryError Error |
Append an Error to the result | Util/ProgressCancel.h | |
void AddWarning
(
FGeometryWarning Warning |
Append a Warning to the result | Util/ProgressCancel.h | |
bool CheckAndSetCancelled
(
FProgressCancel* Progress |
Test if the given Progress has been cancelled, if so, set the Result to Cancelled | Util/ProgressCancel.h | |
bool HasFailed() |
Util/ProgressCancel.h | ||
bool HasResult() |
Util/ProgressCancel.h | ||
void SetCancelled() |
Util/ProgressCancel.h | ||
void SetFailed () |
Util/ProgressCancel.h | ||
| Set state of the Result to Failure, and append a FGeometryError with the given ErrorMessage and ResultCode | Util/ProgressCancel.h | ||
void SetSuccess () |
Util/ProgressCancel.h | ||
void SetSuccess
(
bool bSuccess, |
Set to Success/Failure based on bSuccess, or Cancelled if the (optional) FProgressCancel indicates that it was Cancelled | Util/ProgressCancel.h | |
void UpdateResultType
(
EGeometryResultType NewType |
Util/ProgressCancel.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FGeometryResult Cancelled() |
Util/ProgressCancel.h | ||
static FGeometryResult Failed() |
Util/ProgressCancel.h |