# Function in UAssetActionUtility derived class does not show up

**URL:** <https://forums.unrealengine.com/t/function-in-uassetactionutility-derived-class-does-not-show-up/2513135>\
**Category:** Editor Scripting\
**Tags:** unreal-engine, editor, question, CPP\
**Created:** [May 16, 2025, 10:28am UTC](https://forums.unrealengine.com/t/function-in-uassetactionutility-derived-class-does-not-show-up/2513135 "2025-05-16T10:28:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Woozard](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Woozard](https://forums.unrealengine.com/u/Woozard)\
**Post date:** [May 16, 2025, 10:28am UTC](https://forums.unrealengine.com/t/function-in-uassetactionutility-derived-class-does-not-show-up/2513135/1 "2025-05-16T10:28:41Z")

</div>

I setup a derived class from UAssetActionUtility, and added a function in there, but I cannot find the option when I right click an asset.

h file:

```auto

#include "CoreMinimal.h"
#include "AssetActionUtility.h"
#include "PinAssetAction.generated.h"

/**
 * 
 */
UCLASS()
class PINNEDASSET_API UPinAssetAction : public UAssetActionUtility
{
	GENERATED_BODY()
	
public:
	UFUNCTION(CallInEditor)
	static void Generate();
};

```

cpp file:

```auto
#include "PinAssetAction.h"

void UPinAssetAction::Generate()
{
	UE_LOG(LogTemp, Display, TEXT("Test"));
}

```

Anyone have any ideas what might be wrong?

---

<div class="post-metadata">

**Author:** ![Woozard](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Woozard](https://forums.unrealengine.com/u/Woozard)\
**Post date:** [May 16, 2025, 11:42am UTC](https://forums.unrealengine.com/t/function-in-uassetactionutility-derived-class-does-not-show-up/2513135/2 "2025-05-16T11:42:18Z")

</div>

I managed to fix it myself by accident. For the function to show up in your right click menu, you need to add the BlueprintCallable specifier in UFUNCTION macro

```auto
UCLASS()
class PINNEDASSET_API UPinAssetAction : public UAssetActionUtility
{
	GENERATED_BODY()
	
public:
	UFUNCTION(CallInEditor, BlueprintCallable)
	void Generate();
};

```

---

<div class="post-metadata">

**Author:** ![KethersHao](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kethershao/32/88710_2.png) [@KethersHao](https://forums.unrealengine.com/u/KethersHao)\
**Post date:** [July 30, 2025, 12:16pm UTC](https://forums.unrealengine.com/t/function-in-uassetactionutility-derived-class-does-not-show-up/2513135/3 "2025-07-30T12:16:09Z")

</div>

This seems to be a bug since 5.2 and still exists in 5.3.2. I am following a tutorial about UE editor tool programming and many comments complain about this bug. The usable way to show c++ function of `UAssetActionUtility` derived class with `CallInEditor` in right-click menu correctly, is to create a child blueprint class asset from your `UAssetActionUtility` derived class (in this article is `UPinAssetAction `) and put it in any Content folder. Any time you add a new `CallInEditor` function in this C++ class, you will have to go to that blueprint asset click compile and save, unless new written functions may not show up correctly.

I haven’t find a more elegant way to just skip the manual action above or do that by code. If anyone knows how to do it, plz leave comment. Very grateful to that.
