For example, the following code:
auto meshObj = ConstructorHelpers::FObjectFinder(TEXT(“DestructibleMesh’/Game/Meshes/Destructible/Cylinder.Cylinder’”));
Generates the following errors:
Info […]\ConstructorHelpers.h(105): error C2664: ‘void ConstructorHelpers::ValidateObject(UObject *,const FString &,const TCHAR *)’: **cannot convert argument 1 from 'UDestructibleMesh ’ to 'UObject ’
Info […]\ConstructorHelpers.h(105): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Info […]\ConstructorHelpers.h(98): note: while compiling class template member function ‘ConstructorHelpers::FObjectFinder::FObjectFinder(const TCHAR *)’
Error […]\DestructibleTest.cpp(14) : note: see reference to function template instantiation ‘ConstructorHelpers::FObjectFinder::FObjectFinder(const TCHAR *)’ being compiled
Error […]\DestructibleTest.cpp(14) : note: see reference to class template instantiation ‘ConstructorHelpers::FObjectFinder’ being compiled
Is there some other method that is supposed to be used for loading Destructible Mesh Assets via C++? Google has given me 0 useful results so far.