Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FMaterialResource
Description
Returns the relevant texture for the given Idx. In editor, it looks through all default textures. In non-editor, it has access to default textures based on cook output, if ShouldStripUnusedDefaultTextures returns true.
Virtual Inheritance
- FMaterial::GetMatDefaultTextureAtIdx → FMaterialResource::GetMatDefaultTextureAtIdx
| Name | GetMatDefaultTextureAtIdx |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/MaterialShared.h |
| Include Path | #include "MaterialShared.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Materials/MaterialShared.cpp |
virtual TObjectPtr < UObject > GetMatDefaultTextureAtIdx
(
const int32 InIdx
) const
The texture present at the given Idx or nullptr if not available.