UMaterialEditingLibrary::SetMaterialUsage

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

Unreal Engine C++ API Reference > Editor > MaterialEditor > UMaterialEditingLibrary

References

   
Module MaterialEditor
Header /Engine/Source/Editor/MaterialEditor/Public/MaterialEditingLibrary.h
Include #include "MaterialEditingLibrary.h"
Source /Engine/Source/Editor/MaterialEditor/Private/MaterialEditingLibrary.cpp
static bool SetMaterialUsage
(
    [UMaterial](API\Runtime\Engine\Materials\UMaterial) * Material,
    EMaterialUsage Usage,
    bool & bNeedsRecompile
)

Remarks

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

Parameters

Name 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

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library