# 4.25 Asset Factory not showing up in context menu?

**URL:** <https://forums.unrealengine.com/t/4-25-asset-factory-not-showing-up-in-context-menu/467025>\
**Category:** Pipeline & Plugins\
**Tags:** customization, unreal-engine, editor, question\
**Created:** [June 20, 2020, 12:22pm UTC](https://forums.unrealengine.com/t/4-25-asset-factory-not-showing-up-in-context-menu/467025 "2020-06-20T12:22:32Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mercus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mercus](https://forums.unrealengine.com/u/Mercus)\
**Post date:** [June 20, 2020, 12:22pm UTC](https://forums.unrealengine.com/t/4-25-asset-factory-not-showing-up-in-context-menu/467025/1 "2020-06-20T12:22:32Z")

</div>

I have the usual boilerplate code prepared but for some reason it does not show up in the context menu under ‘Blueprints’. What am I doing wrong?

Based on previous experience and code when I right click to create new asset under the ‘Blueprints’ it should show my new asset type to pick.

**UMercusQuestFactory.h**

```
#include "CoreMinimal.h"
#include "Factories/Factory.h"
#include "MercusQuestFactory.generated.h"

UCLASS()
class MERCUSPROJECT_API UMercusQuestFactory : public UFactory
{
	GENERATED_BODY()
public:
	UMercusQuestFactory();
	virtual uint32 GetMenuCategories() const override;
	virtual UObject* FactoryCreateNew(UClass* InClass, UObject* InParent, FName InName, EObjectFlags Flags, UObject* Context, FFeedbackContext* Warn) override;
};

```

**UMercusQuestFactory.cpp**

```
#include "MercusQuestFactory.h"
#include "QuestSystem/Quest.h"
#include "AssetTypeCategories.h"

UMercusQuestFactory::UMercusQuestFactory()
{
	bCreateNew = true;
	bEditAfterNew = true;
	SupportedClass = UQuest::StaticClass();
}

uint32 UMercusQuestFactory::GetMenuCategories() const
{
	return EAssetTypeCategories::Blueprint;
}

UObject* UMercusQuestFactory::FactoryCreateNew(UClass* InClass, UObject* InParent, FName InName, EObjectFlags Flags, UObject* Context, FFeedbackContext* Warn)
{
	UQuest* QuestAsset = NewObject<UQuest>(InParent, InClass, InName, Flags);
	return QuestAsset;
}

```

**Quest.h**

```
UCLASS()
class MERCUSPROJECT_API UQuest : public UObject
{
	GENERATED_BODY()
protected:
    UPROPERTY(EditAnywhere, Category = "Verix")
    FText QuestName;

    UPROPERTY(EditAnywhere, Category = "Verix")
    FText QuestDescription;
};
```

---

<div class="post-metadata">

**Author:** ![Mercus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mercus](https://forums.unrealengine.com/u/Mercus)\
**Post date:** [June 20, 2020, 1:13pm UTC](https://forums.unrealengine.com/t/4-25-asset-factory-not-showing-up-in-context-menu/467025/2 "2020-06-20T13:13:46Z")

</div>

Just tested this on 4.24 and it seems to work fine there. I’m confused.

---

<div class="post-metadata">

**Author:** ![Mercus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mercus](https://forums.unrealengine.com/u/Mercus)\
**Post date:** [June 22, 2020, 12:00pm UTC](https://forums.unrealengine.com/t/4-25-asset-factory-not-showing-up-in-context-menu/467025/3 "2020-06-22T12:00:23Z")

</div>

Nobody else has issues with this on 4.25? :o

---

<div class="post-metadata">

**Author:** ![NordInTheRags](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NordInTheRags](https://forums.unrealengine.com/u/NordInTheRags)\
**Post date:** [June 23, 2020, 12:37pm UTC](https://forums.unrealengine.com/t/4-25-asset-factory-not-showing-up-in-context-menu/467025/4 "2020-06-23T12:37:43Z")

</div>

having the same issue

---

<div class="post-metadata">

**Author:** ![TrofimovYuri](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/trofimovyuri/32/467136_2.png) [@TrofimovYuri](https://forums.unrealengine.com/u/TrofimovYuri)\
**Post date:** [June 24, 2020, 6:54pm UTC](https://forums.unrealengine.com/t/4-25-asset-factory-not-showing-up-in-context-menu/467025/5 "2020-06-24T18:54:07Z")

</div>

The same problem. Editor version 4.25.1

---

<div class="post-metadata">

**Author:** ![TrofimovYuri](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/trofimovyuri/32/467136_2.png) [@TrofimovYuri](https://forums.unrealengine.com/u/TrofimovYuri)\
**Post date:** [June 24, 2020, 7:28pm UTC](https://forums.unrealengine.com/t/4-25-asset-factory-not-showing-up-in-context-menu/467025/6 "2020-06-24T19:28:04Z")

</div>

I have the same problem on editor version 4.25.1  
I solve it by creating child class from **FAssetTypeActions\_Base type**. Then in my module **StartupModule** function i register asset type actions:

```
void FSociumSystemEditorModule::StartupModule()
{
	IAssetTools& AssetTools = FModuleManager::LoadModuleChecked<FAssetToolsModule>("AssetTools").Get();
	GameAssetCategory = AssetTools.RegisterAdvancedAssetCategory(FName(TEXT("SociumSystem")), LOCTEXT("SociumSystemCategory", "SociumSystem"));
	AssetTools.RegisterAssetTypeActions(MakeShareable(new FSociumSystemDatabaseActions(GameAssetCategory)));
}

class FSociumSystemDatabaseActions : public FAssetTypeActions_Base
{
public:
	FSociumSystemDatabaseActions(uint32 InAssetCategory);

	virtual FText GetName() const override;
	virtual FColor GetTypeColor() const override;
	virtual UClass* GetSupportedClass() const override;
```

---

<div class="post-metadata">

**Author:** ![Mercus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mercus](https://forums.unrealengine.com/u/Mercus)\
**Post date:** [June 25, 2020, 8:57am UTC](https://forums.unrealengine.com/t/4-25-asset-factory-not-showing-up-in-context-menu/467025/7 "2020-06-25T08:57:08Z")

</div>

Hi, yes this seems to solve it but I’m not sure if it should still be listed as a bug or not 😛

---

<div class="post-metadata">

**Author:** ![TrofimovYuri](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/trofimovyuri/32/467136_2.png) [@TrofimovYuri](https://forums.unrealengine.com/u/TrofimovYuri)\
**Post date:** [June 25, 2020, 2:21pm UTC](https://forums.unrealengine.com/t/4-25-asset-factory-not-showing-up-in-context-menu/467025/8 "2020-06-25T14:21:47Z")

</div>

Looks like “By-Design” behavior. If custom factory not added in Factory array - it not appear in ContextMenu:

 ![305421-debuggerscreen.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/5/9/059e01b8fdf2bd01ab6166650e05f85d12960c7f.jpeg)

---

<div class="post-metadata">

**Author:** ![qvaLarsson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@qvaLarsson](https://forums.unrealengine.com/u/qvaLarsson)\
**Post date:** [July 22, 2020, 2:02pm UTC](https://forums.unrealengine.com/t/4-25-asset-factory-not-showing-up-in-context-menu/467025/9 "2020-07-22T14:02:59Z")

</div>

I’m just doing a factory so I can create a custom asset that I can ref in an actor, and use its’ data. The reason I’m not doing this in an actor inside the level is because it’ll be tampered with often by designers, and we don’t want it to be bound to the scene for collaboration. I need a separate asset as well, because I intend to make a custom editor for that asset.

However, does that mean I need to make a plugin to make factories work in 4.25? Haven’t worked with Modules outside of plugins, which seems a bit overkill to just add an asset to the context menu in the editor.

---

<div class="post-metadata">

**Author:** ![Sam\_Swain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sam_swain/32/598801_2.png) [@Sam\_Swain](https://forums.unrealengine.com/u/Sam_Swain)\
**Post date:** [February 18, 2021, 12:31pm UTC](https://forums.unrealengine.com/t/4-25-asset-factory-not-showing-up-in-context-menu/467025/10 "2021-02-18T12:31:23Z")

</div>

I’m seeing this too in 4.25. Registering the custom FAssetTypeActions\_Base implementation seems to fix it. Not sure why but the IsAssetClassSupported doesn’t find one for a new asset type and so fails. Maybe the system provided a default one for you in the past.  
This renders the various walkthrough examples broken as it stands.

---

<div class="post-metadata">

**Author:** ![joe07734](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/joe07734/32/488494_2.png) [@joe07734](https://forums.unrealengine.com/u/joe07734)\
**Post date:** [April 12, 2023, 4:19am UTC](https://forums.unrealengine.com/t/4-25-asset-factory-not-showing-up-in-context-menu/467025/11 "2023-04-12T04:19:35Z")

</div>

> **[Creating a Custom Asset Type with its own Editor in C++ | Community tutorial](https://dev.epicgames.com/community/learning/tutorials/vyKB/unreal-engine-creating-a-custom-asset-type-with-its-own-editor-in-c)**
>
> In this tutorial, you will learn how to create a code plugin that adds a custom asset type (complete with its own editor) to the engine. As an example, ...
