Attaching a SphereCollider to a SceneComponent

I am writing a custom SceneComponent and need a SphereCollider to be attached to that component by default.
I am currently attaching it like this

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

This works kinda as a now have a sphere component attached to that very same scene component.

Now that works but its not pretty imo. So my Questions. Is there a way to actually parent the Sphere under the Scene Component like this in c++?


Or alternatively is there an easy way to make the editor draw the Sphere Details like it does when adding it as a component from the editor.


I hope my question is clear. Thanks in advance!

Hi there! Is it some special case that you want to create Component in another Component, instead of creating it in Actor constructor and making up all attachments there?

Yeah there is. I am writing a Mantling/Climbing System that I would like to just be able to attach to Characters as a Component. Therefore I try to really box all stuff that the component needs to work into the Component itself :slight_smile: