Navigation
API > API/Plugins > API/Plugins/DataValidation
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- USubsystem
- UDynamicSubsystem
- UEditorSubsystem
- UEditorValidatorSubsystem
References
| Module | DataValidation |
| Header | /Engine/Plugins/Editor/DataValidation/Source/DataValidation/Public/EditorValidatorSubsystem.h |
| Include | #include "EditorValidatorSubsystem.h" |
Syntax
UCLASS&40;Config&61;Editor&41;
class UEditorValidatorSubsystem : public UEditorSubsystem
Remarks
UEditorValidatorSubsystem manages all the asset validation in the engine. The first validation handled is UObject::IsDataValid and its overridden functions. Those validations require custom classes and are most suited to project-specific classes. The next validation set is of all registered UEditorValidationBases. These validators have a function to determine if they can validate a given asset, and if they are currently enabled. They are good candidates for validating engine classes or very specific project logic.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bAllowBlueprintValidators | Specifies whether or not to allow Blueprint validators | |
| bool | bValidateAssetsWhileSavingForCook | Specifies whether or not to validate assets on save when saving for a cook | |
| bool | bValidateOnSave | Whether it should validate assets on save inside the editor | |
| TArray< FDirectoryPath > | ExcludedDirectories | Directories to ignore for data validation. Useful for test assets | |
| TArray< FName > | SavedPackagesToValidate | List of saved package names to validate next frame | |
| TMap< FString, TObjectPtr< UEditorValidatorBase > > | Validators |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddValidator
(
UEditorValidatorBase* InValidator |
Adds a validator to the list, making sure it is a unique instance | |
| void | |||
| EDataValidationResult | IsAssetValid
(
const FAssetData& AssetData, |
||
| EDataValidationResult | IsObjectValid
(
UObject* InObject, |
||
| bool | IsPathExcludedFromValidation
(
const FString& Path |
||
| void | |||
| void | Handles validating all pending save packages | ||
| int32 | ValidateAssetsWithSettings
(
const TArray< FAssetData >& AssetDataList, |
Called to validate assets from either the UI or a commandlet | |
| void | ValidateChangelistPreSubmit
(
FSourceControlChangelistPtr Changelist, |
Validates changelist before SCC submit operation | |
| void | ValidateOnSave
(
TArray< FAssetData > AssetDataList, |
Called to validate from an interactive save | |
| void | ValidateSavedPackage
(
FName PackageName, |
Schedule a validation of a saved package, this will activate next frame by default so it can combine them |
Overridden from USubsystem
| Type | Name | Description | |
|---|---|---|---|
| void | Deinitialize () |
Implement this for deinitialization of instances of the system | |
| void | Initialize
(
FSubsystemCollectionBase& Collection |
Implement this for initialization of instances of the system |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | ValidateAssets
(
TArray< FAssetData > AssetDataList, |
Use ValidateAssetsWithSettings instead | |
| void | ValidateOnSave
(
TArray< FAssetData > AssetDataList |
Use version that takes bProceduralSave instead | |
| void | ValidateSavedPackage
(
FName PackageName |
Use version that takes bProceduralSave instead |