Navigation
API > API/Plugins > API/Plugins/ProjectLauncher
Validation object representing errors and warnings tied to profile settings. If the given validation errors are present in the profile a warning icon will be displayed next to this property in the UI
Use with the Validation callback in FLaunchProfileTreeNode:
.Validation = FValidation( {ELauncherProfileValidationErrors::NoProjectSelected, ...} ), or .Validation = FValidation( {TEXT("Validation_SomeCustomValidation"), ...} ),
| Name | FValidation |
| Type | class |
| Header File | /Engine/Plugins/Developer/ProjectLauncher/Source/ProjectLauncher/Public/ProfileTree/LaunchProfileTreeData.h |
| Include Path | #include "ProfileTree/LaunchProfileTreeData.h" |
Syntax
class FValidation
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FValidation () |
ProfileTree/LaunchProfileTreeData.h | ||
FValidation
(
std::initializer_list< ELauncherProfileValidationErrors::Type > InAssociatedErrors |
ProfileTree/LaunchProfileTreeData.h | ||
FValidation
(
std::initializer_list< FString > InAssociatedCustomErrors |
ProfileTree/LaunchProfileTreeData.h | ||
FValidation
(
std::initializer_list< ELauncherProfileValidationErrors::Type > InAssociatedErrors, |
ProfileTree/LaunchProfileTreeData.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AssociatedCustomErrors | TArray< FString > | ProfileTree/LaunchProfileTreeData.h | ||
| AssociatedErrors | TArray< ELauncherProfileValidationErrors::Type > | ProfileTree/LaunchProfileTreeData.h | ||
| bIsSet | bool | ProfileTree/LaunchProfileTreeData.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Collects error text from the profile for display. | ProfileTree/LaunchProfileTreeData.h | ||
bool HasError
(
ILauncherProfileRef Profile |
Returns true if the given profile has one of the associated errors. | ProfileTree/LaunchProfileTreeData.h | |
bool IsSet() |
Returns true if any validation rules are set. | ProfileTree/LaunchProfileTreeData.h |