Download

how do I make a custom component appear on Blueprint Components List.

So I extended a PawnSensingComponent from the engine… called it PawnSensingComponentEx

I noticed it didn’t appear in the Blueprint Components list…

any idea where I can edit so it appears.

i have been playing with this, but no success.
check out Making Custom Components - C++ Gameplay Programming - Unreal Engine Forums

Did you include the meta data “meta=(BlueprintSpawnableComponent)” in the UCLASS macro for you class?

Oh wow, thanks Marc Audy!

That worked for me!

Here’s a pic!



#pragma once
#include "VictorySkelMeshComp.h"
#include "VictoryMorpherComp.generated.h"

UCLASS(meta=(BlueprintSpawnableComponent))
class UVictoryMorpherComp : public UVictorySkelMeshComp
{
	GENERATED_UCLASS_BODY()



Edit

Whipped this into wiki tutorial, thanks Marc!

https://wiki.unrealengine.com/Custom_UObject_Components,_How_to_Make_Accessible_to_Blueprints

Edit 2

Here’s how you add your own category to components section!

Rama

Is there anything special you have to do to make functions callable by Blueprint?

In order to make functions callable by Blueprint, you put
UFUNCTION(BlueprintCallable)
above your function in your .h file.

Example:



UFUNCTION(BlueprintCallable)
void DoSomething(int32 someValue);


There are other features you can put in your UFUNCTION() macro to enable different features, you can read all about it here
https://wiki.unrealengine.com/Bluepr…lueprint_Nodes