UMaterialInterface::CheckMaterialUsage

Checks if the material can be used with the given usage flag.

Windows
MacOS
Linux

Override Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Materials/MaterialInterface.h

Include

#include "Materials/MaterialInterface.h"

Syntax

virtual bool CheckMaterialUsage
(
    const EMaterialUsage Usage
)

Remarks

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.

Returns

bool - true if the material can be used for rendering with the given type.

Parameters

Parameter

Description

Usage

The usage flag to check

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss