25 lines
638 B
C++
25 lines
638 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
#include "Factory/BagConfigFactory.h"
|
|
|
|
#include "ProjectFish/DataAsset/BagConfigAsset.h"
|
|
|
|
UBagConfigFactory::UBagConfigFactory()
|
|
{
|
|
SupportedClass = UBagConfigAsset::StaticClass();
|
|
}
|
|
|
|
UObject* UBagConfigFactory::FactoryCreateNew(UClass* Class, UObject* InParent, FName Name, EObjectFlags Flags,
|
|
UObject* Context, FFeedbackContext* Warn)
|
|
{
|
|
UBagConfigAsset* NewBagConfigAsset = NewObject<UBagConfigAsset>(InParent, Class, Name, Flags | RF_Transactional);
|
|
|
|
return NewBagConfigAsset;
|
|
}
|
|
|
|
bool UBagConfigFactory::ShouldShowInNewMenu() const
|
|
{
|
|
return true;
|
|
}
|