UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FMaterialExternalCodeEnvironmentDefine Struct Reference

#include <MaterialExternalCodeRegistry.h>

Public Member Functions

 GENERATED_BODY ()
 
void UpdateHash (FSHA1 &Hasher) const
 

Public Attributes

FName Name
 
EMaterialShaderFrequency ShaderFrequency = EMaterialShaderFrequency::Any
 

Detailed Description

Structure to enable shader environment defines per external code declaration. E.g. the external code declaration for "ParticleColor" enables the define "NEEDS_PARTICLE_COLOR" when used in the pixel stage.

Member Function Documentation

◆ GENERATED_BODY()

FMaterialExternalCodeEnvironmentDefine::GENERATED_BODY ( )

◆ UpdateHash()

void FMaterialExternalCodeEnvironmentDefine::UpdateHash ( FSHA1 Hasher) const

Updates the input hasher state with the content of this environemnt define.

Member Data Documentation

◆ Name

FName FMaterialExternalCodeEnvironmentDefine::Name

Name of the environment define to enable.

◆ ShaderFrequency

EMaterialShaderFrequency FMaterialExternalCodeEnvironmentDefine::ShaderFrequency = EMaterialShaderFrequency::Any

Optional shader frequency to further restrict this environment define besides its code declaration shader frequency.


The documentation for this struct was generated from the following files: