There is no parameter in detail pane of my component!

Hi;
I would like to add a “UCapsuleComponent” to my Character. Here is my codes in constructor :

AES_ScorBot::AES_ScorBot(const class FObjectInitializer& ObjectInitializer)
	: Super(ObjectInitializer)
{	
	TouchCapsule = ObjectInitializer.CreateOptionalDefaultSubobject<UCapsuleComponent>(this, TEXT("Capsule1"));
	TouchCapsule->InitCapsuleSize(30.0f, 80.0f);
	TouchCapsule->AttachParent = RootComponent;
	AddComponent(FName("UCapsuleComponent"), true, FTransform(FVector()), TouchCapsule);
...

It creates a CapsuleComponent in blueprint, but the problem is, there is no parameter in detail pane of this component !

Thanks.
MSD.

That’s because there won’t ever be any parameters on DEFAULT subobjects. The idea is that you should initialize these in code, and expose any parameters you may need through the actor class itself. You can then use the exposed parameters to modify your components in BeginPlay.

UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = AES)

Put something like that over the variable in the header?