I’ve encountered a problem while loading material in realtime.
I’m using both FObjectFinder and LoadObject ways but problem is the same.
When i’m trying to load material that contains only math it loads and works fine, but when i’m trying to load material that contains a texture its going gray
It seems like there is problems with loading texture but i cant find a solution.
Please help.
you probably should post some code of what you are doing
UStaticMeshComponent Mesh = ConstructObject(this,“MeshComp”);
if (Mesh != NULL) Mesh->SetMaterial(0, LoadObject(this,TEXT("Material'path_to_my_mat'"))); // Here is the problem