FString test = “SM_Chair.SM_Chair”;
static ConstructorHelpers::FObjectFinder Mesh(TEXT(“/Game/StarterContent/Props/”));
towerMesh->SetStaticMesh(Mesh.Object);
How would i be able to add a path (test) that i want to the end of TEXT in object finder?
I think the following would do the trick:
FString test = "SM_Chair.SM_Chair";
FString fullPath = "/Game/StarterContent/Props/" + test;
static ConstructorHelpers::FObjectFinder<UStaticMesh> Mesh(*fullPath);
FObjectFinder expects a const TCHAR*, which you can get by dereferencing FString.