FMaterialRenderProxy::GetMaterialWithFallback

Finds the [FMaterial](API\Runtime\Engine\FMaterial) to use for rendering this [FMaterialRenderProxy](API\Runtime\Engine\FMaterialRenderProxy).

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/MaterialShared.cpp

Syntax

const FMaterial & GetMaterialWithFallback
(
    ERHIFeatureLevel::Type InFeatureLevel,
    const FMaterialRenderProxy *& OutFallbackMaterialRenderProxy
) const

Remarks

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 availiable OutFallbackMaterialRenderProxy - The proxy that coorisponds to the returned FMaterial, should be used for further rendering. May be a fallback material, or 'this' if no fallback was needed

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