UMaterialInterface::GetUsedTexturesAndIndices

Return the textures used to render this material and the material indices bound to each.

Windows
MacOS
Linux

Override Hierarchy

References

Module

Engine

Header

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

Include

#include "Materials/MaterialInterface.h"

Source

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

Syntax

virtual void GetUsedTexturesAndIndices
(
    TArray< UTexture * > & OutTextures,
    TArray< TArray< int32 > > & OutIndices,
    EMaterialQualityLevel::Type QualityLevel,
    ERHIFeatureLevel::Type FeatureLevel
) const

Remarks

Return the textures used to render this material and the material indices bound to each. Because material indices can change for each shader, this is limited to a single platform and quality level. An empty array in OutIndices means the index is undefined.

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