[Organizing My Code] Where should Spawn functions be written?

The standard way to find an actor is to basically go through all actors of a certain class using the actor iterator until you find the one you want:

From the wiki:




void AYourControllerClass::PrintAllStaticMeshActorsLocations()
{
	//EngineUtils.h
	for (TActorIterator<AStaticMeshActor> ActorItr(GetWorld()); ActorItr; ++ActorItr)
	{
		ClientMessage(ActorItr->GetName());
		ClientMessage(ActorItr->GetActorLocation().ToString());
	}
}


Just replace AStaticMeshActor with your custom class.