Component doesnt follow the root

I have created a C++ class derived from the character class.
I have added a spherecomponent

on *.h:

 UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Collision")
 USphereComponent* ProxSphere;

and on *cpp:

 ProxSphere = CreateDefaultSubobject<USphereComponent>(TEXT("ProxSphere"));

Next I created a Blueprint out of it.
Whenever I place the BP into the world the Sphere Component is glued to 0,0,0 while the mesh and root capsule folow my cursor. Once I release the mouse and place the BPsomewhere in the world, only then the sphere component follows the root somehow.

Any idea what is wrong here?

Thank you

That’s probably because you created your spherecomponent but didn’t actually attach it to anything. In order to attach it to the rootcomponent of the character, you can use:
ProxSphere->AttachTo(RootComponent, NAME_None, EAttachLocation::SnapToTarget);
That way it should follow the movement of the root component.