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")); SphereTracer->SetupAttachment(this);
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!