25 lines
638 B
C++
Raw Permalink Normal View History

2025-08-31 14:41:41 +08:00
// 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;
}