UMaterial::SetMaterialUsage

Set the given usage flag.

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "Materials/Material.h"

Source

/Engine/Source/Runtime/Engine/Private/Materials/Material.cpp

Syntax

bool SetMaterialUsage
(
    bool & bNeedsRecompile,
    const EMaterialUsage Usage
)

Remarks

Set the given usage flag.

Returns

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

Parameters

Parameter

Description

bNeedsRecompile

true if the material was recompiled for the usage change

Usage

The usage flag to set

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