Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Materials > UMaterialInstance
- UMaterialInterface::GetUsedTexturesAndIndices()
- UMaterialInstance::GetUsedTexturesAndIndices()
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Materials/MaterialInstance.h |
Include | #include "Materials/MaterialInstance.h" |
Source | /Engine/Source/Runtime/Engine/Private/Materials/MaterialInstance.cpp |
virtual void GetUsedTexturesAndIndices
&40;
TArray< UTexture &42; > & OutTextures,
TArray< TArray< int32 > > & OutIndices,
EMaterialQualityLevel::Type QualityLevel,
ERHIFeatureLevel::Type FeatureLevel
&41; 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.