Files
UnrealEngineUWP/Engine/Source/Editor/LandscapeEditor/Private/LandscapeLayerInfoObjectFactory.cpp
bryan sefcik 8cc129f2b6 IWYU Pass 1 - Engine/Source/Editor/...
#jira
#preflight 6306736ac85b7fef22be7751

[CL 21558583 by bryan sefcik in ue5-main branch]
2022-08-24 22:45:13 -04:00

26 lines
838 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "LandscapeLayerInfoObjectFactory.h"
#include "LandscapeLayerInfoObject.h"
#include "Templates/SubclassOf.h"
class FFeedbackContext;
class UClass;
class UObject;
ULandscapeLayerInfoObjectFactory::ULandscapeLayerInfoObjectFactory(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
bCreateNew = true;
bEditAfterNew = true;
SupportedClass = ULandscapeLayerInfoObject::StaticClass();
}
UObject* ULandscapeLayerInfoObjectFactory::FactoryCreateNew(UClass* Class, UObject* InParent, FName Name, EObjectFlags Flags, UObject* Context, FFeedbackContext* Warn)
{
ULandscapeLayerInfoObject* NewLayerInfoObject = NewObject<ULandscapeLayerInfoObject>(InParent, Class, Name, Flags | RF_Public | RF_Standalone | RF_Transactional);
return NewLayerInfoObject;
}