I’m not too clued-up on data type conversion, especially involving pointers. Is there any way to make this code more efficient? I’m creating a std::string and need it to become a const TCHAR*, but I’m not keen on the dereferencing of the string, plus c_str(). It seems a bit convoluted for passing a simple string.
std::string path = "StaticMesh'/Game/Items/Models/"; path += model; path += "/"; path += model; path += "."; path += model; path += "'"; ConstructorHelpers::FObjectFinder<UStaticMesh> BaseMeshAsset(*FString(path.c_str()));