/Engine/Source/Runtime/Engine/Classes/Materials/MaterialInstance.h
Checks if the material can be used with the given usage flag. If the flag isn't set in the editor, it will be set and the material will be recompiled with it.
bool - true if the material can be used for rendering with the given type.
virtual bool CheckMaterialUsage ( const EMaterialUsage Usage )