RealtimeStyleTransferRuntime/Source/LyraEditor/Validation/EditorValidator_Load.h

33 lines
868 B
C
Raw Permalink Normal View History

2022-05-23 18:41:30 +00:00
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
2022-09-13 07:18:28 +00:00
#include "Containers/Array.h"
#include "Containers/UnrealString.h"
2022-05-23 18:41:30 +00:00
#include "EditorValidator.h"
2022-09-13 07:18:28 +00:00
#include "UObject/UObjectGlobals.h"
2022-05-23 18:41:30 +00:00
#include "EditorValidator_Load.generated.h"
2022-09-13 07:18:28 +00:00
class FText;
class UObject;
2022-05-23 18:41:30 +00:00
UCLASS()
class UEditorValidator_Load : public UEditorValidator
{
GENERATED_BODY()
public:
UEditorValidator_Load();
virtual bool IsEnabled() const override;
static bool GetLoadWarningsAndErrorsForPackage(const FString& PackageName, TArray<FString>& OutWarningsAndErrors);
protected:
virtual bool CanValidateAsset_Implementation(UObject* InAsset) const override;
virtual EDataValidationResult ValidateLoadedAsset_Implementation(UObject* InAsset, TArray<FText>& ValidationErrors) override;
private:
static TArray<FString> InMemoryReloadLogIgnoreList;
};