UMaterial::RestoreMaterialShadersFromMemory

Recreates FShaders for [FMaterialShaderMap](API\Runtime\Engine\FMaterialShaderMap)'s from the serialized data.

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "Materials/Material.h"

Source

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

Syntax

static void RestoreMaterialShadersFromMemory
(
    const TMap< class FMaterialShaderMap *, TUniquePtr< TArray< uint8 > > > & ShaderMapToSerializedShaderData
)

Remarks

Recreates FShaders for FMaterialShaderMap's from the serialized data. Shader maps may not be complete after this due to changes in the shader keys.

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