How to spawn a sphere?

Hey guys I am moving from Unity and I can’t find the proper documentation for 4.7.6 on how to spawn… I am trying to follow the docs but I am lost when it comes to creating the constructors for this…



//CreateValuesClass.h
	UPROPERTY(EditAnywhere, Category = CellWall)
	TSubobjectPtr<USphereComponent> sphere1
       
        CreateSphere()




//CreateValuesClass.cpp

ACellValuesClass::CreateSphere(const FObjectInitializer& ObjectInitializer)
{

	sphere1 = ObjectInitializer.CreateDefaultSubobject<USphereComponent>(this, TEXT("Sphere1"));
}


This is not working… What am I doing wrong?! Also why am I doing it wrong. Thank you so much!

This tutorial can walk you through a lot of the basics: