26 lines
728 B
C++
26 lines
728 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "UObject/ObjectMacros.h"
|
|
#include "Templates/SubclassOf.h"
|
|
#include "Factories/Factory.h"
|
|
#include "DataAssetFactory.generated.h"
|
|
|
|
class UDataAsset;
|
|
|
|
UCLASS(hidecategories = Object, MinimalAPI)
|
|
class UDataAssetFactory: public UFactory
|
|
{
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
UPROPERTY(EditAnywhere, Category = DataAsset)
|
|
TSubclassOf<UDataAsset> DataAssetClass;
|
|
|
|
// UFactory interface
|
|
virtual bool ConfigureProperties() override;
|
|
virtual UObject* FactoryCreateNew(UClass* Class, UObject* InParent, FName Name, EObjectFlags Flags, UObject* Context, FFeedbackContext* Warn) override;
|
|
// End of UFactory interface
|
|
};
|