Navigation
API > API/Runtime > API/Runtime/Engine
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/MaterialCachedData.h |
| Include | #include "MaterialCachedData.h" |
Syntax
struct FMaterialCachedExpressionData
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint32: 1 | bHasMaterialLayers | ||
| uint32: 1 | bHasPerInstanceCustomData | ||
| uint32: 1 | bHasPerInstanceRandom | ||
| uint32: 1 | bHasRuntimeVirtualTextureOutput | ||
| uint32: 1 | bHasSceneColor | ||
| uint32: 1 | bHasVertexInterpolator | ||
| TArray< FVector4d > | DoubleVectorValues | ||
| TArray< TPair< TObjectPtr< class UMaterialExpression >, FName > > | DuplicateParameterErrors | Array of errors reporting a parameter being set multiple times to distinct values. | |
| TArray< FName > | DynamicParameterNames | ||
| TArray< bool > | DynamicSwitchValues | ||
| TSharedPtr< FMaterialCachedExpressionEditorOnlyData > | EditorOnlyData | ||
| TArray< int32 > | FontPageValues | ||
| TArray< TSoftObjectPtr< UFont > > | FontValues | ||
| TArray< FMaterialFunctionInfo > | FunctionInfos | Array of all functions this material depends on. | |
| uint32 | FunctionInfosStateCRC | CRC of the FunctionInfos StateIds. | |
| TArray< TObjectPtr< ULandscapeGrassType > > | GrassTypes | ||
| FMaterialLayersFunctionsRuntimeData | MaterialLayers | ||
| TArray< FMaterialParameterCollectionInfo > | ParameterCollectionInfos | Array of all parameter collections this material depends on. | |
| uint64 | PropertyConnectedMask | Each bit corresponds to EMaterialProperty connection status. | |
| TArray< bool > | QualityLevelsUsed | ||
| TArray< TObjectPtr< UObject > > | ReferencedTextures | Array of all texture referenced by this material | |
| FMaterialCachedParameterEntry[NumMaterialRuntimeParameterTypes] | RuntimeEntries | ||
| TArray< TSoftObjectPtr< URuntimeVirtualTexture > > | RuntimeVirtualTextureValues | ||
| TArray< int32 > | ScalarPrimitiveDataIndexValues | ||
| TArray< float > | ScalarValues | ||
| TArray< TSoftObjectPtr< USparseVolumeTexture > > | SparseVolumeTextureValues | ||
| TArray< bool > | StaticSwitchValues | ||
| TArray< TSoftObjectPtr< UTexture > > | TextureValues | ||
| TArray< int32 > | VectorPrimitiveDataIndexValues | ||
| TArray< FLinearColor > | VectorValues |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AddParameter
(
const FMaterialParameterInfo& ParameterInfo, |
Adds a parameter. | |
| void | AddReferencedObjects
(
FReferenceCollector& Collector |
||
| void | AnalyzeMaterial
(
UMaterial& Material |
||
| void | AppendReferencedFunctionIdsTo
(
TArray< FGuid >& OutIds |
Returns an array of the guids of functions used, with the call hierarchy flattened. | |
| void | AppendReferencedParameterCollectionIdsTo
(
TArray< FGuid >& OutIds |
Returns an array of the guids of parameter collections used. | |
| int32 | FindParameterIndex
(
EMaterialParameterType Type, |
||
| void | GetAllGlobalParameterInfoOfType
(
EMaterialParameterType Type, |
||
| void | GetAllGlobalParametersOfType
(
EMaterialParameterType Type, |
||
| void | GetAllParameterInfoOfType
(
EMaterialParameterType Type, |
||
| void | GetAllParametersOfType
(
EMaterialParameterType Type, |
||
| const FGuid & | GetExpressionGuid
(
EMaterialParameterType Type, |
||
| int32 | GetNumParameters
(
EMaterialParameterType Type |
||
| const FMaterialCachedParameterEditorEntry & | GetParameterEditorTypeEntry
(
EMaterialParameterType Type |
||
| FMaterialCachedParameterEditorEntry & | GetParameterEditorTypeEntry
(
EMaterialParameterType Type |
||
| const FMaterialCachedParameterEntry & | GetParameterTypeEntry
(
EMaterialParameterType Type |
||
| FMaterialCachedParameterEntry & | GetParameterTypeEntry
(
EMaterialParameterType Type |
||
| bool | GetParameterValue
(
EMaterialParameterType Type, |
||
| void | GetParameterValueByIndex
(
EMaterialParameterType Type, |
||
| bool | IsPropertyConnected
(
EMaterialProperty Property |
||
| void | PostSerialize
(
const FArchive& Ar |
||
| bool | |||
| void | SetPropertyConnected
(
EMaterialProperty Property |
||
| void | UpdateForCachedHLSLTree
(
const FMaterialCachedHLSLTree& CachedTree, |
||
| void | UpdateForExpressions
(
const FMaterialCachedExpressionContext& Context, |
||
| void | UpdateForFunction
(
const FMaterialCachedExpressionContext& Context, |
||
| void | UpdateForLayerFunctions
(
const FMaterialCachedExpressionContext& Context, |
||
| void | Validate () |
Constants
| Name | Description |
|---|---|
| EmptyData |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| uint32 | PropertyConnectedBitmask_DEPRECATED |