UMaterialEditingLibrary::HasMaterialUsage

Check if a particular usage is enabled 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 HasMaterialUsage
(
    [UMaterial](API\Runtime\Engine\Materials\UMaterial) * Material,
    EMaterialUsage Usage
)

Remarks

Check if a particular usage is enabled for the supplied material (e.g. SkeletalMesh, ParticleSprite etc)

Parameters

Name Description
Material Material to check usage for
Usage Usage type to check for this material

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library