DoesMaterialUseTexture

Check whether the specified texture is needed to render the material instance.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/MaterialShared.h

Include

#include "MaterialShared.h"

Source

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

Syntax

bool DoesMaterialUseTexture
(
    const UMaterialInterface * Material,
    const UTexture * CheckTexture
)

Remarks

Check whether the specified texture is needed to render the material instance.

Returns

bool - true if the material uses the specified texture.

Parameters

Parameter

Description

Texture

The texture 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