# There is no parameter in detail pane of my component!

**URL:** <https://forums.unrealengine.com/t/there-is-no-parameter-in-detail-pane-of-my-component/308681>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [March 2, 2015, 5:52am UTC](https://forums.unrealengine.com/t/there-is-no-parameter-in-detail-pane-of-my-component/308681 "2015-03-02T05:52:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MSD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/msd/32/88719_2.png) [@MSD](https://forums.unrealengine.com/u/MSD)\
**Post date:** [March 2, 2015, 5:52am UTC](https://forums.unrealengine.com/t/there-is-no-parameter-in-detail-pane-of-my-component/308681/1 "2015-03-02T05:52:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Arshia001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Arshia001](https://forums.unrealengine.com/u/Arshia001)\
**Post date:** [March 2, 2015, 6:53am UTC](https://forums.unrealengine.com/t/there-is-no-parameter-in-detail-pane-of-my-component/308681/2 "2015-03-02T06:53:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Cobryis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cobryis](https://forums.unrealengine.com/u/Cobryis)\
**Post date:** [March 2, 2015, 6:55am UTC](https://forums.unrealengine.com/t/there-is-no-parameter-in-detail-pane-of-my-component/308681/3 "2015-03-02T06:55:27Z")

</div>

UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = AES)

Put something like that over the variable in the header?
