34 lines
1.2 KiB
C
34 lines
1.2 KiB
C
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
||
|
|
|
||
|
|
//~=============================================================================
|
||
|
|
// ReimportFbxStaticMeshFactory
|
||
|
|
//~=============================================================================
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "CoreMinimal.h"
|
||
|
|
#include "UObject/ObjectMacros.h"
|
||
|
|
#include "EditorReimportHandler.h"
|
||
|
|
#include "Factories/FbxFactory.h"
|
||
|
|
#include "ReimportFbxStaticMeshFactory.generated.h"
|
||
|
|
|
||
|
|
UCLASS(MinimalAPI, collapsecategories)
|
||
|
|
class UReimportFbxStaticMeshFactory: public UFbxFactory
|
||
|
|
, public FReimportHandler
|
||
|
|
{
|
||
|
|
GENERATED_UCLASS_BODY()
|
||
|
|
|
||
|
|
//~ Begin FReimportHandler Interface
|
||
|
|
virtual bool CanReimport(UObject* Obj, TArray<FString>& OutFilenames) override;
|
||
|
|
virtual void SetReimportPaths(UObject* Obj, const TArray<FString>& NewReimportPaths) override;
|
||
|
|
virtual EReimportResult::Type Reimport(UObject* Obj) override;
|
||
|
|
virtual int32 GetPriority() const override;
|
||
|
|
virtual void PostImportCleanUp() { CleanUp(); }
|
||
|
|
//~ End FReimportHandler Interface
|
||
|
|
|
||
|
|
//~ Begin UFactory Interface
|
||
|
|
virtual bool FactoryCanImport(const FString& Filename) override;
|
||
|
|
virtual bool IsAutomatedImport() const override;
|
||
|
|
//~ End UFactory Interface
|
||
|
|
};
|