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.