2018-12-14 13:44:01 -05:00
|
|
|
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
2018-10-29 10:01:28 -04:00
|
|
|
|
|
|
|
|
#include "VirtualTextureFactoryNew.h"
|
|
|
|
|
#include "VT/VirtualTexture.h"
|
|
|
|
|
|
|
|
|
|
UVirtualTextureFactoryNew::UVirtualTextureFactoryNew(const FObjectInitializer& ObjectInitializer)
|
|
|
|
|
: Super(ObjectInitializer)
|
|
|
|
|
{
|
|
|
|
|
SupportedClass = UVirtualTexture::StaticClass();
|
|
|
|
|
bCreateNew = true;
|
|
|
|
|
bEditAfterNew = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
UObject* UVirtualTextureFactoryNew::FactoryCreateNew(UClass* InClass, UObject* InParent, FName InName, EObjectFlags Flags, UObject* Context, FFeedbackContext* Warn)
|
|
|
|
|
{
|
|
|
|
|
return NewObject<UVirtualTexture>(InParent, InClass, InName, Flags);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool UVirtualTextureFactoryNew::ShouldShowInNewMenu() const
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|