I want to change a static mesh’s Material in runtime,so I must take a reference to the mesh, how can I get it?
I had search for this question, someone use
ConstructorHelpers::FObjectFinder,I tried it
but when I run the game it says:
FObjectFinders can’t be used outside of constructors to find EditorPlane
this is the code:
static ConstructorHelpers::FObjectFinder findresult(TEXT(“EditorPlane”));
I fill this line in this function