Hey guys, I have been looking for hours trying to find a way to do this and it’s starting to get me angry,
I was trying to follow this https://docs.unrealengine.com/latest/INT/Programming/Tutorials/Components/1/index.html But I guess I am doing somethign wrong.
.cpp:
ASpawnFactory::ASpawnFactory(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer)
{
Sphere = ObjectInitializer.CreateDefaultSubobject<USphereComponent>(this, TEXT("SphereComp"));
Sphere->InitSphereRadius(5.0f);
}
.h:
USphereComponent* Sphere;
It’s not allowing me to spawn a sphere, I don’t know what to do or if I am on the right track, also is that just a component sphere, would I have to spawn a mesh as well?
Even though I appreciate answers please try to answer the question instead of advice or redirection, seeing how once a thread has a reply no one checks it after. Thanks so much!