I am trying to add a UBoxComponent to the base Character class provided from the 3rd Person C++ template, but I cannot modify the box component from the blueprint archetype in editor (I can see it rendered and modify its properties fine in code).
Here is how I created my UBoxComponent in code:
.h
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = LightAttack)
TSubobjectPtr<class UBoxComponent> LightAttackHitbox;
.cpp
LightAttackHitbox = PCIP.CreateDefaultSubobject<UBoxComponent>(this, TEXT("LightAttackHitbox"));
LightAttackHitbox->AttachTo(RootComponent);