UStaticMeshComponent Set Material At Runtime

I recommand you to defined your Material in .h with UPROPERTY(EditAnywhere) and to set it in blueprint. It is the best way to maintain your code.

Where are you using this code ? the function static ConstructorHelpers::FObjectFindershoulb be call only in constructor.