Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FMaterialRenderProxy
Description
Finds the FMaterial to use for rendering this FMaterialRenderProxy. Will fall back to a default material if needed due to a content error, or async compilation. The returned FMaterial is guaranteed to have a complete shader map, so all relevant shaders should be available OutFallbackMaterialRenderProxy - The proxy that corresponds to the returned FMaterial, should be used for further rendering. May be a fallback material, or 'this' if no fallback was needed
| Name | GetMaterialWithFallback |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialRenderProxy.h |
| Include Path | #include "Materials/MaterialRenderProxy.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Materials/MaterialRenderProxy.cpp |
const FMaterial & GetMaterialWithFallback
(
ERHIFeatureLevel::Type InFeatureLevel,
const FMaterialRenderProxy *& OutFallbackMaterialRenderProxy
) const