Navigation
API > API/Plugins > API/Plugins/GameFeatures
Struct wrapper on a combined TValueOrError ErrorCode and FText OptionalErrorText that can provide an FString error code and if set more detailed FText OptionalErrorText information for the results of a GameFeaturesPlugin operation.
| Name | FResult |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/GameFeatures/Source/GameFeatures/Public/GameFeaturePluginOperationResult.h |
| Include Path | #include "GameFeaturePluginOperationResult.h" |
Syntax
struct FResult
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FResult () |
No default constructor as we want to force you to always specify at the minimum if the FResult is an error or not through a supplied FErrorCodeType | GameFeaturePluginOperationResult.h | |
FResult
(
FErrorCodeType ErrorCodeIn |
Explicit constructor for times we want to create an FResult directly from an FErrorCodeType and not through MakeValue or MakeError. | GameFeaturePluginOperationResult.h | |
FResult
(
TValueOrError_ValueProxy< ArgTypes... >&& ValueProxyIn |
Template Conversion Constructor to allow us to initialize from TValueOrError MakeValue This is needed because of how TValueOrError implements MakeValue through the same templated approach with TValueOrError_ValueProxy. | GameFeaturePluginOperationResult.h | |
FResult
(
TValueOrError_ErrorProxy< ArgTypes... >&& ErrorProxyIn |
Template Conversion Constructor to allow us to initialize from TValueOrError MakeError This is needed because of how TValueOrError implements MakeError through the same templated approach with TValueOrError_ErrorProxy. | GameFeaturePluginOperationResult.h | |
| GameFeaturePluginOperationResult.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ErrorCode | FErrorCodeType | Error Code representing the error that occurred | GameFeaturePluginOperationResult.h | |
| OptionalErrorText | FText | Optional Localized error description to bubble up to the user if one was generated | GameFeaturePluginOperationResult.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FString GetError() |
GameFeaturePluginOperationResult.h | ||
bool HasError() |
GameFeaturePluginOperationResult.h | ||
bool HasValue() |
Quick functions that just pass through to the ErrorCode | GameFeaturePluginOperationResult.h | |
FString StealError() |
GameFeaturePluginOperationResult.h |