30 lines
983 B
C
30 lines
983 B
C
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
||
|
|
|
||
|
|
//~=============================================================================
|
||
|
|
// PhysicalMaterialFactoryNew
|
||
|
|
//~=============================================================================
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "CoreMinimal.h"
|
||
|
|
#include "UObject/ObjectMacros.h"
|
||
|
|
#include "Templates/SubclassOf.h"
|
||
|
|
#include "Factories/Factory.h"
|
||
|
|
#include "PhysicalMaterialFactoryNew.generated.h"
|
||
|
|
|
||
|
|
class UPhysicalMaterial;
|
||
|
|
|
||
|
|
UCLASS(MinimalAPI, HideCategories = Object)
|
||
|
|
class UPhysicalMaterialFactoryNew: public UFactory
|
||
|
|
{
|
||
|
|
GENERATED_UCLASS_BODY()
|
||
|
|
|
||
|
|
UPROPERTY(EditAnywhere, Category = PhysicalMaterialFactory)
|
||
|
|
TSubclassOf<UPhysicalMaterial> PhysicalMaterialClass;
|
||
|
|
|
||
|
|
//~ Begin UFactory Interface
|
||
|
|
virtual bool ConfigureProperties() override;
|
||
|
|
virtual UObject* FactoryCreateNew(UClass* Class, UObject* InParent, FName Name, EObjectFlags Flags, UObject* Context, FFeedbackContext* Warn) override;
|
||
|
|
//~ Begin UFactory Interface
|
||
|
|
};
|