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

#include <MaterialCachedData.h>

Public Member Functions

ENGINE_API FMaterialCachedExpressionData ()
 
const FMaterialCachedParameterEntryGetParameterTypeEntry (EMaterialParameterType Type) const
 
int32 GetNumParameters (EMaterialParameterType Type) const
 
int32 FindParameterIndex (EMaterialParameterType Type, const FMemoryImageMaterialParameterInfo &HashedParameterInfo) const
 
ENGINE_API bool GetParameterValue (EMaterialParameterType Type, const FMemoryImageMaterialParameterInfo &ParameterInfo, FMaterialParameterMetadata &OutResult) const
 
void GetParameterValueByIndex (EMaterialParameterType Type, int32 ParameterIndex, FMaterialParameterMetadata &OutResult) const
 
const FGuidGetExpressionGuid (EMaterialParameterType Type, int32 Index) const
 
void GetAllParametersOfType (EMaterialParameterType Type, TMap< FMaterialParameterInfo, FMaterialParameterMetadata > &OutParameters) const
 
void GetAllParameterInfoOfType (EMaterialParameterType Type, TArray< FMaterialParameterInfo > &OutParameterInfo, TArray< FGuid > &OutParameterIds) const
 
void GetAllGlobalParametersOfType (EMaterialParameterType Type, TMap< FMaterialParameterInfo, FMaterialParameterMetadata > &OutParameters) const
 
void GetAllGlobalParameterInfoOfType (EMaterialParameterType Type, TArray< FMaterialParameterInfo > &OutParameterInfo, TArray< FGuid > &OutParameterIds) const
 
ENGINE_API void AddReferencedObjects (FReferenceCollector &Collector)
 
void AppendReferencedFunctionIdsTo (TArray< FGuid > &OutIds) const
 
void AppendReferencedParameterCollectionIdsTo (TArray< FGuid > &OutIds) const
 
void GetExternalCodeReferencesHash (FSHAHash &OutHash) const
 
bool IsPropertyConnected (EMaterialProperty Property) const
 
void SetPropertyConnected (EMaterialProperty Property)
 
bool Serialize (FArchive &Ar)
 
void PostSerialize (const FArchive &Ar)
 

Public Attributes

FMaterialCachedParameterEntry RuntimeEntries [NumMaterialRuntimeParameterTypes]
 
TArray< int32ScalarPrimitiveDataIndexValues
 
TArray< int32VectorPrimitiveDataIndexValues
 
TArray< floatScalarValues
 
TArray< boolStaticSwitchValues
 
TArray< boolDynamicSwitchValues
 
TArray< FLinearColorVectorValues
 
TArray< FVector4dDoubleVectorValues
 
TArray< TSoftObjectPtr< UTexture > > TextureValues
 
TArray< TSoftObjectPtr< UTextureCollection > > TextureCollectionValues
 
TArray< TSoftObjectPtr< UMaterialParameterCollection > > ParameterCollectionValues
 
TArray< TSoftObjectPtr< UFont > > FontValues
 
TArray< int32FontPageValues
 
TArray< TSoftObjectPtr< URuntimeVirtualTexture > > RuntimeVirtualTextureValues
 
TArray< TSoftObjectPtr< USparseVolumeTexture > > SparseVolumeTextureValues
 
TArray< TObjectPtr< UObject > > ReferencedTextures
 
TArray< TObjectPtr< UTextureCollection > > ReferencedTextureCollections
 
TArray< TObjectPtr< UClass > > ReferencedExternalCodeExpressionClasses
 
TArray< FMaterialFunctionInfoFunctionInfos
 
uint32 FunctionInfosStateCRC
 
TArray< FMaterialParameterCollectionInfoParameterCollectionInfos
 
TArray< TObjectPtr< ULandscapeGrassType > > GrassTypes
 
TArray< TObjectPtr< UMaterialCacheVirtualTextureTag > > MaterialCacheTags
 
FMaterialLayersFunctionsRuntimeData MaterialLayers
 
TArray< FNameDynamicParameterNames
 
TArray< boolQualityLevelsUsed
 
uint64 MaterialCacheUVCoordinatesUsedMask = 0x0
 
uint32 bHasMaterialLayers: 1
 
uint32 bHasRuntimeVirtualTextureOutput: 1
 
uint32 bHasFirstPersonOutput: 1
 
uint32 bUsesTemporalResponsiveness: 1
 
uint32 bUsesMotionVectorWorldOffset: 1
 
uint32 bSamplesMaterialCache: 1
 
uint32 bHasMaterialCacheOutput: 1
 
uint32 bMaterialCacheHasNonUVDerivedExpression: 1
 
uint32 bHasSceneColor: 1
 
uint32 bHasPerInstanceCustomData: 1
 
uint32 bHasPerInstanceRandom: 1
 
uint32 bHasVertexInterpolator: 1
 
uint32 bHasCustomizedUVs: 1
 
uint32 bHasMeshPaintTexture: 1
 
uint32 bHasWorldPosition: 1
 
uint32 PropertyConnectedBitmask_DEPRECATED = 0
 
uint64 PropertyConnectedMask = 0
 

Static Public Attributes

static ENGINE_API const FMaterialCachedExpressionData EmptyData {}
 

Constructor & Destructor Documentation

◆ FMaterialCachedExpressionData()

FMaterialCachedExpressionData::FMaterialCachedExpressionData ( )

Member Function Documentation

◆ AddReferencedObjects()

void FMaterialCachedExpressionData::AddReferencedObjects ( FReferenceCollector Collector)

◆ AppendReferencedFunctionIdsTo()

void FMaterialCachedExpressionData::AppendReferencedFunctionIdsTo ( TArray< FGuid > &  OutIds) const

Returns an array of the guids of functions used, with the call hierarchy flattened.

◆ AppendReferencedParameterCollectionIdsTo()

void FMaterialCachedExpressionData::AppendReferencedParameterCollectionIdsTo ( TArray< FGuid > &  OutIds) const

Returns an array of the guids of parameter collections used.

◆ FindParameterIndex()

int32 FMaterialCachedExpressionData::FindParameterIndex ( EMaterialParameterType  Type,
const FMemoryImageMaterialParameterInfo HashedParameterInfo 
) const

◆ GetAllGlobalParameterInfoOfType()

void FMaterialCachedExpressionData::GetAllGlobalParameterInfoOfType ( EMaterialParameterType  Type,
TArray< FMaterialParameterInfo > &  OutParameterInfo,
TArray< FGuid > &  OutParameterIds 
) const

◆ GetAllGlobalParametersOfType()

void FMaterialCachedExpressionData::GetAllGlobalParametersOfType ( EMaterialParameterType  Type,
TMap< FMaterialParameterInfo, FMaterialParameterMetadata > &  OutParameters 
) const

◆ GetAllParameterInfoOfType()

void FMaterialCachedExpressionData::GetAllParameterInfoOfType ( EMaterialParameterType  Type,
TArray< FMaterialParameterInfo > &  OutParameterInfo,
TArray< FGuid > &  OutParameterIds 
) const

◆ GetAllParametersOfType()

void FMaterialCachedExpressionData::GetAllParametersOfType ( EMaterialParameterType  Type,
TMap< FMaterialParameterInfo, FMaterialParameterMetadata > &  OutParameters 
) const

◆ GetExpressionGuid()

const FGuid & FMaterialCachedExpressionData::GetExpressionGuid ( EMaterialParameterType  Type,
int32  Index 
) const

◆ GetExternalCodeReferencesHash()

void FMaterialCachedExpressionData::GetExternalCodeReferencesHash ( FSHAHash OutHash) const

Returns a hash over all external code references from this cache.

◆ GetNumParameters()

int32 FMaterialCachedExpressionData::GetNumParameters ( EMaterialParameterType  Type) const
inline

◆ GetParameterTypeEntry()

const FMaterialCachedParameterEntry & FMaterialCachedExpressionData::GetParameterTypeEntry ( EMaterialParameterType  Type) const
inline

◆ GetParameterValue()

bool FMaterialCachedExpressionData::GetParameterValue ( EMaterialParameterType  Type,
const FMemoryImageMaterialParameterInfo ParameterInfo,
FMaterialParameterMetadata OutResult 
) const

◆ GetParameterValueByIndex()

void FMaterialCachedExpressionData::GetParameterValueByIndex ( EMaterialParameterType  Type,
int32  ParameterIndex,
FMaterialParameterMetadata OutResult 
) const

◆ IsPropertyConnected()

bool FMaterialCachedExpressionData::IsPropertyConnected ( EMaterialProperty  Property) const
inline

◆ PostSerialize()

void FMaterialCachedExpressionData::PostSerialize ( const FArchive Ar)

◆ Serialize()

bool FMaterialCachedExpressionData::Serialize ( FArchive Ar)

◆ SetPropertyConnected()

void FMaterialCachedExpressionData::SetPropertyConnected ( EMaterialProperty  Property)
inline

Member Data Documentation

◆ bHasCustomizedUVs

uint32 FMaterialCachedExpressionData::bHasCustomizedUVs

◆ bHasFirstPersonOutput

uint32 FMaterialCachedExpressionData::bHasFirstPersonOutput

◆ bHasMaterialCacheOutput

uint32 FMaterialCachedExpressionData::bHasMaterialCacheOutput

◆ bHasMaterialLayers

uint32 FMaterialCachedExpressionData::bHasMaterialLayers

◆ bHasMeshPaintTexture

uint32 FMaterialCachedExpressionData::bHasMeshPaintTexture

◆ bHasPerInstanceCustomData

uint32 FMaterialCachedExpressionData::bHasPerInstanceCustomData

◆ bHasPerInstanceRandom

uint32 FMaterialCachedExpressionData::bHasPerInstanceRandom

◆ bHasRuntimeVirtualTextureOutput

uint32 FMaterialCachedExpressionData::bHasRuntimeVirtualTextureOutput

◆ bHasSceneColor

uint32 FMaterialCachedExpressionData::bHasSceneColor

◆ bHasVertexInterpolator

uint32 FMaterialCachedExpressionData::bHasVertexInterpolator

◆ bHasWorldPosition

uint32 FMaterialCachedExpressionData::bHasWorldPosition

◆ bMaterialCacheHasNonUVDerivedExpression

uint32 FMaterialCachedExpressionData::bMaterialCacheHasNonUVDerivedExpression

◆ bSamplesMaterialCache

uint32 FMaterialCachedExpressionData::bSamplesMaterialCache

◆ bUsesMotionVectorWorldOffset

uint32 FMaterialCachedExpressionData::bUsesMotionVectorWorldOffset

◆ bUsesTemporalResponsiveness

uint32 FMaterialCachedExpressionData::bUsesTemporalResponsiveness

◆ DoubleVectorValues

TArray<FVector4d> FMaterialCachedExpressionData::DoubleVectorValues

◆ DynamicParameterNames

TArray<FName> FMaterialCachedExpressionData::DynamicParameterNames

◆ DynamicSwitchValues

TArray<bool> FMaterialCachedExpressionData::DynamicSwitchValues

◆ EmptyData

const FMaterialCachedExpressionData FMaterialCachedExpressionData::EmptyData {}
static

◆ FontPageValues

TArray<int32> FMaterialCachedExpressionData::FontPageValues

◆ FontValues

TArray<TSoftObjectPtr<UFont> > FMaterialCachedExpressionData::FontValues

◆ FunctionInfos

TArray<FMaterialFunctionInfo> FMaterialCachedExpressionData::FunctionInfos

Array of all functions this material depends on.

◆ FunctionInfosStateCRC

uint32 FMaterialCachedExpressionData::FunctionInfosStateCRC

CRC of the FunctionInfos StateIds.

◆ GrassTypes

TArray<TObjectPtr<ULandscapeGrassType> > FMaterialCachedExpressionData::GrassTypes

◆ MaterialCacheTags

TArray<TObjectPtr<UMaterialCacheVirtualTextureTag> > FMaterialCachedExpressionData::MaterialCacheTags

◆ MaterialCacheUVCoordinatesUsedMask

uint64 FMaterialCachedExpressionData::MaterialCacheUVCoordinatesUsedMask = 0x0

◆ MaterialLayers

FMaterialLayersFunctionsRuntimeData FMaterialCachedExpressionData::MaterialLayers

◆ ParameterCollectionInfos

TArray<FMaterialParameterCollectionInfo> FMaterialCachedExpressionData::ParameterCollectionInfos

Array of all parameter collections this material depends on.

◆ ParameterCollectionValues

TArray<TSoftObjectPtr<UMaterialParameterCollection> > FMaterialCachedExpressionData::ParameterCollectionValues

◆ PropertyConnectedBitmask_DEPRECATED

uint32 FMaterialCachedExpressionData::PropertyConnectedBitmask_DEPRECATED = 0

◆ PropertyConnectedMask

uint64 FMaterialCachedExpressionData::PropertyConnectedMask = 0

Each bit corresponds to EMaterialProperty connection status.

◆ QualityLevelsUsed

TArray<bool> FMaterialCachedExpressionData::QualityLevelsUsed

◆ ReferencedExternalCodeExpressionClasses

TArray<TObjectPtr<UClass> > FMaterialCachedExpressionData::ReferencedExternalCodeExpressionClasses

Array of all material expression classes that contain external code declarations.

◆ ReferencedTextureCollections

TArray<TObjectPtr<UTextureCollection> > FMaterialCachedExpressionData::ReferencedTextureCollections

◆ ReferencedTextures

TArray<TObjectPtr<UObject> > FMaterialCachedExpressionData::ReferencedTextures

Array of all texture referenced by this material

◆ RuntimeEntries

FMaterialCachedParameterEntry FMaterialCachedExpressionData::RuntimeEntries[NumMaterialRuntimeParameterTypes]

◆ RuntimeVirtualTextureValues

TArray<TSoftObjectPtr<URuntimeVirtualTexture> > FMaterialCachedExpressionData::RuntimeVirtualTextureValues

◆ ScalarPrimitiveDataIndexValues

TArray<int32> FMaterialCachedExpressionData::ScalarPrimitiveDataIndexValues

◆ ScalarValues

TArray<float> FMaterialCachedExpressionData::ScalarValues

◆ SparseVolumeTextureValues

TArray<TSoftObjectPtr<USparseVolumeTexture> > FMaterialCachedExpressionData::SparseVolumeTextureValues

◆ StaticSwitchValues

TArray<bool> FMaterialCachedExpressionData::StaticSwitchValues

◆ TextureCollectionValues

TArray<TSoftObjectPtr<UTextureCollection> > FMaterialCachedExpressionData::TextureCollectionValues

◆ TextureValues

TArray<TSoftObjectPtr<UTexture> > FMaterialCachedExpressionData::TextureValues

◆ VectorPrimitiveDataIndexValues

TArray<int32> FMaterialCachedExpressionData::VectorPrimitiveDataIndexValues

◆ VectorValues

TArray<FLinearColor> FMaterialCachedExpressionData::VectorValues

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