UMaterialEditingLibrary::SetMaterialUsage

Enable a particular usage for the supplied material (e.g. SkeletalMesh, ParticleSprite etc)

Windows
MacOS
Linux

References

Module

MaterialEditor

Header

/Engine/Source/Editor/MaterialEditor/Public/MaterialEditingLibrary.h

Include

#include "MaterialEditingLibrary.h"

Source

/Engine/Source/Editor/MaterialEditor/Private/MaterialEditingLibrary.cpp

Syntax

static bool SetMaterialUsage
(
    UMaterial * Material,
    EMaterialUsage Usage,
    bool & bNeedsRecompile
)

Remarks

Enable a particular usage for the supplied material (e.g. SkeletalMesh, ParticleSprite etc)

Parameters

Parameter

Description

Material

Material to change usage for

Usage

New usage type to enable for this material

bNeedsRecompile

Returned to indicate if material needs recompiling after this change

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