Download

How to set a UPROPERTY UStaticMesh with a path

I has a .csv file that beside other contains UStaticMesh object path
I am trying to parse that csv back into data table


UStaticMesh* StaticMeshPtr = FindObject<UStaticMesh>(ANY_PACKAGE, Path,true);

For example path


Path = StaticMesh'"/Game/Modern_Cozy_Suites/Meshes/Living/SM_LDeco_002.SM_LDeco_002"


This is table struct


USTRUCT(BlueprintType)
struct FMainVRStructure : public FTableRowBase
{
GENERATED_USTRUCT_BODY()
public:

/** Model */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Main table structure")
UStaticMesh* Model;

/** Materials */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Main table structure")
TArray<UMaterialInstance*> Material;

And i trying to set finded StatickMesh to out DataTable


row.Model = StaticMeshPtr;

But its not working, it seems like need to use something different rather than FindObject.
please help