Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Materials/Material.h |
Include |
#include "Materials/Material.h" |
class UMaterial : public UMaterialInterface
A Material is an asset which can be applied to a mesh to control the visual look of the scene. When light from the scene hits the surface, the shading model of the material is used to calculate how that light interacts with the surface.
Warning: Creating new materials directly increases shader compile times! Consider creating a Material Instance off of an existing material instead.
Name | Description | ||
---|---|---|---|
|
uint8: 1 |
AllowTranslucentCustomDepthWrites |
Allows a translucent material to be used with custom depth writing by compiling additional shaders. |
|
uint8: 1 |
bAllowDevelopmentShaderCompile |
If true the compilation environment will be changed to remove the global COMPILE_SHADERS_FOR_DEVELOPMENT flag. |
|
uint8: 1 |
bAllowFrontLayerTranslucency |
Allows a translucent material to be used with Front Layer Translucency by compiling additional shaders. |
|
uint8: 1 |
bAllowNegativeEmissiveColor |
Whether the material should allow outputting negative emissive color values. |
|
bool |
bAlwaysEvaluateWorldPositionOffset |
Forces World Position Offset to always be evaluated for this material, even if the primitive it's applied to has disabled it via "Evaluate World Position Offset" or "World Position Offset Disable Distance". |
|
uint8: 1 |
bApplyCloudFogging |
When true, translucent materials receive cloud contribution as part of the fog evaluation, per vertex or per pixel according to the other selected options. |
|
uint8: 1 |
bAutomaticallySetUsageInEditor |
Whether to automatically set usage flags based on what the material is applied to in the editor. |
|
uint8: 1 |
bCanMaskedBeAssumedOpaque |
True if this Material can be assumed Opaque when set to masked. |
|
uint8: 1 |
bCastDynamicShadowAsMasked |
Whether the material should cast shadows as masked even though it has a translucent blend mode. |
|
uint8: 1 |
bCastRayTracedShadows |
When true, the material casts ray tracing shadows. |
|
uint8: 1 |
bComputeFogPerPixel |
When true, translucent materials have fog computed for every pixel, which costs more but fixes artifacts due to low tessellation. |
|
uint8: 1 |
bContactShadows |
Contact shadows on translucency |
|
uint8: 1 |
bDisableDepthTest |
Whether to draw on top of opaque pixels even if behind them. |
|
uint8: 1 |
bEnableExecWire |
|
|
uint8: 1 |
bEnableMobileSeparateTranslucency |
Indicates that the translucent material should not be affected by bloom or DOF. |
|
uint8: 1 |
bEnableNewHLSLGenerator |
|
|
uint8: 1 |
bEnableResponsiveAA |
Indicates that the material should be rendered using responsive anti-aliasing. |
|
uint8: 1 |
bEnableStencilTest |
Selectively execute post process material only for pixels that pass the stencil test against the Custom Depth/Stencil buffer. |
|
uint8: 1 |
bForwardBlendsSkyLightCubemaps |
Enables blending of sky light cubemap textures. |
|
uint32: 1 |
bForwardRenderUsePreintegratedGFForSimpleIBL |
Forward (including mobile) renderer: use preintegrated GF lut for simple IBL, but will use one more sampler. |
|
uint8: 1 |
bFullyRough |
Forces the material to be completely rough. Saves a number of instructions and one sampler. |
|
uint8: 1 |
bGenerateSphericalParticleNormals |
Whether to generate spherical normals for particles that use this material. |
|
uint8: 1 |
bIsBlendable |
Allows blendability to be turned off, only used if domain is PostProcess |
|
uint8: 1 |
bIsFunctionPreviewMaterial |
True if Material is the function preview material used in the material instance editor. |
|
uint8: 1 |
bIsMaterialEditorStatsMaterial |
True if this is a special material used for stats by the material editor. |
|
uint8: 1 |
bIsPreviewMaterial |
True if Material is the preview material used in the material editor. |
|
uint8: 1 |
bIsSky |
Unlit and Opaque materials can be used as sky material on a sky dome mesh. |
|
uint8: 1 |
bIsThinSurface |
Indicates that the material should be rendered as a thin surface (i.e., without inner volume). |
|
TEnumAsByte< EB... |
BlendableLocation |
Where the node is inserted in the (post processing) graph, only used if domain is PostProcess |
|
uint8: 1 |
BlendableOutputAlpha |
If this is enabled, the blendable will output alpha |
|
int32 |
BlendablePriority |
If multiple nodes with the same type are inserted at the same point, this defined order and if they get combined, only used if domain is PostProcess |
|
TEnumAsByte< EB... |
BlendMode |
Determines how the material's color is blended with background colors. |
|
uint8: 1 |
bMobileEnableHighQualityBRDF |
Use the high quality brdf functions on mobile to get better visual effects but adds GPU cost. |
|
uint8: 1 |
bNormalCurvatureToRoughness |
Reduce roughness based on screen space normal changes. |
|
uint8: 1 |
bOutputTranslucentVelocity |
When true, translucent materials will output motion vectors and write to depth buffer in velocity pass. |
|
uint8: 1 |
bRootNodeOverridesDefaultDistortion |
Indicates that the material do not use the material physically based refraction (e.g. IOR from reflectivity F0), but overrides it for artistic purposes. |
|
uint8: 1 |
bScreenSpaceReflections |
SSR on translucency |
|
uint8: 1 |
bTangentSpaceNormal |
Whether the material takes a tangent space normal or a world space normal as input. |
|
uint8: 1 |
bUseAlphaToCoverage |
Use alpha to coverage for masked material on mobile, make sure MSAA is enabled as well. |
|
uint8: 1 |
bUsedAsSpecialEngineMaterial |
This is a special usage flag that allows a material to be assignable to any primitive type. |
|
uint8: 1 |
bUsedWithBeamTrails |
Indicates that the material and its instances can be used with beam trails This will result in the shaders required to support beam trails being compiled which will increase shader compile time and memory usage. |
|
uint8: 1 |
bUsedWithClothing |
Indicates that the material and its instances can be used with clothing This will result in the shaders required to support clothing being compiled which will increase shader compile time and memory usage. |
|
uint8: 1 |
bUsedWithEditorCompositing |
Indicates that the material and its instances can be used with editor compositing This will result in the shaders required to support editor compositing being compiled which will increase shader compile time and memory usage. |
|
uint8: 1 |
bUsedWithGeometryCache |
|
|
uint8: 1 |
bUsedWithGeometryCollections |
Indicates that the material and its instances can be use with geometry collections This will result in the shaders required to support geometry collections being compiled which will increase shader compile time and memory usage. |
|
uint32: 1 |
bUsedWithHairStrands |
Indicates that the material and its instances can be use with hair strands This will result in the shaders required to support hair strands geometries being compiled which will increase shader compile time and memory usage. |
|
uint32: 1 |
bUsedWithHeterogeneousVolumes |
Indicates that the material and its instances with heterogeneous volumes. |
|
uint8: 1 |
bUsedWithInstancedStaticMeshes |
Indicates that the material and its instances can be used with instanced static meshes This will result in the shaders required to support instanced static meshes being compiled which will increase shader compile time and memory usage. |
|
uint32: 1 |
bUsedWithLidarPointCloud |
Indicates that the material and its instances can be use with LiDAR Point Clouds This will result in the shaders required to support LiDAR Point Cloud geometries being compiled which will increase shader compile time and memory usage. |
|
uint8: 1 |
bUsedWithMeshParticles |
Indicates that the material and its instances can be used with mesh particles This will result in the shaders required to support mesh particles being compiled which will increase shader compile time and memory usage. |
|
uint8: 1 |
bUsedWithMorphTargets |
Indicates that the material and its instances can be used with morph targets This will result in the shaders required to support morph targets being compiled which will increase shader compile time and memory usage. |
|
uint32: 1 |
bUsedWithNanite |
Indicates that the material and its instances can be used with Nanite meshes. |
|
uint8: 1 |
bUsedWithNiagaraMeshParticles |
|
|
uint8: 1 |
bUsedWithNiagaraRibbons |
|
|
uint8: 1 |
bUsedWithNiagaraSprites |
Indicates that the material and its instances can be used with Niagara sprites (meshes and ribbons, respectively) This will result in the shaders required to support Niagara sprites being compiled which will increase shader compile time and memory usage. |
|
uint8: 1 |
bUsedWithParticleSprites |
Indicates that the material and its instances can be used with particle sprites This will result in the shaders required to support particle sprites being compiled which will increase shader compile time and memory usage. |
|
uint8: 1 |
bUsedWithSkeletalMesh |
Indicates that the material and its instances can be used with skeletal meshes. |
|
uint8: 1 |
bUsedWithSplineMeshes |
Indicates that the material and its instances can be used with spline meshes This will result in the shaders required to support spline meshes being compiled which will increase shader compile time and memory usage. |
|
uint8: 1 |
bUsedWithStaticLighting |
Indicates that the material and its instances can be used with static lighting This will result in the shaders required to support static lighting being compiled which will increase shader compile time and memory usage. |
|
uint32: 1 |
bUsedWithVirtualHeightfieldMesh |
Indicates that the material and its instances can be used with Virtual Heightfield Mesh. |
|
uint32: 1 |
bUsedWithVolumetricCloud |
Indicates that the material and its instances with volumetric cloud. |
|
uint32: 1 |
bUsedWithWater |
Indicates that the material and its instances can be use with water This will result in the shaders required to support water meshes being compiled which will increase shader compile time and memory usage. |
|
uint8: 1 |
bUseEmissiveForDynamicAreaLighting |
If enabled, the material's emissive colour is injected into the LightPropagationVolume |
|
uint8: 1 |
bUseHQForwardReflections |
Forward renderer: enables multiple parallax-corrected reflection captures that blend together. |
|
uint8: 1 |
bUseLightmapDirectionality |
Use lightmap directionality and per pixel normals. |
|
uint8: 1 |
bUseMaterialAttributes |
When true, the material attributes pin is used instead of the regular pins. |
|
uint8: 1 |
bUsePlanarForwardReflections |
Enables planar reflection when using the forward renderer or mobile. |
|
uint8: 1 |
bUsesDistortion |
Indicates that the material and its instances can be used with distortion This will result in the shaders required to support distortion being compiled which will increase shader compile time and memory usage. |
|
uint8: 1 |
bUseTranslucencyVertexFog |
When true, translucent materials are fogged. Defaults to true. |
|
uint8: 1 |
bWriteOnlyAlpha |
Whether the transluency pass should write its alpha, and only the alpha, into the framebuffer |
|
TEnumAsByte< ED... |
DecalBlendMode |
|
|
FDefaultMateria... |
DefaultMaterialInstance |
FMaterialRenderProxy derivative that represent this material to the renderer, when the renderer needs to fetch parameter values. |
|
DisplacementScaling |
||
|
uint8: 1 |
DitheredLODTransition |
Whether meshes rendered with the material should support dithered LOD transitions. |
|
uint8: 1 |
DitherOpacityMask |
Dither opacity mask. |
|
EditorParameters |
Used to detect duplicate parameters. Does not contain parameters in referenced functions! |
|
|
int32 |
EditorPitch |
|
|
int32 |
EditorX |
|
|
int32 |
EditorY |
|
|
int32 |
EditorYaw |
|
|
TEnumAsByte< EM... |
FloatPrecisionMode |
How to use full (highp) precision in the pixel shader. |
|
TEnumAsByte< EM... |
MaterialDecalResponse |
Defines how the material reacts on DBuffer decals (Affects look, performance and texture/sample usage). |
|
TEnumAsByte< EM... |
MaterialDomain |
The domain that the material's attributes will be evaluated in. |
|
TObjectPtr< cla... |
MaterialGraph |
EdGraph based representation of the Material |
|
float |
MaxWorldPositionOffsetDisplacement |
Specifies the max world position offset of the material. |
|
NaniteOverrideMaterial |
An override material which will be used instead of this one when rendering with Nanite. |
|
|
int32 |
NumCustomizedUVs |
Number of customized UV inputs to display. |
|
float |
OpacityMaskClipValue |
If BlendMode is BLEND_Masked, the surface is not rendered where OpacityMask < OpacityMaskClipValue. |
|
TObjectPtr< cla... |
PhysicalMaterialMap |
Physical material mask map to use for this graphics material. Used for sounds, effects etc. |
|
TObjectPtr< cla... |
PhysMaterial |
Physical material to use for this graphics material. Used for sounds, effects etc. |
|
TObjectPtr< cla... |
PhysMaterialMask |
Physical material mask to use for this graphics material. Used for sounds, effects etc. |
|
TEnumAsByte< ER... |
RefractionCoverageMode |
Controls whether refraction takes into account the material surface coverage, or not. |
|
float |
RefractionDepthBias |
This is the refraction depth bias, larger values offset distortion to prevent closer objects from rendering into the distorted surface at acute viewing angles but increases the disconnect between surface and where the refraction starts. |
|
TEnumAsByte< ER... |
RefractionMethod |
Controls how the Refraction input is interpreted and how the refraction offset into scene color is computed for this material. |
|
RenderTracePhysicalMaterialOutputs |
||
|
TEnumAsByte< EM... |
ShadingRate |
Select what shading rate to apply, on platforms that support variable rate shading. |
|
StateId |
Guid that uniquely identifies this material. |
|
|
TEnumAsByte< EM... |
StencilCompare |
|
|
uint8 |
StencilRefValue |
|
|
StrataCompilationConfig |
Not a UPROPERTY, used to propagate editor only strata material simplification options for preview. |
|
|
float |
TranslucencyDirectionalLightingIntensity |
Useful for artificially increasing the influence of the normal on the lighting result for translucency. |
|
TEnumAsByte< ET... |
TranslucencyLightingMode |
Sets the lighting mode that will be used on this material if it is translucent. |
|
TEnumAsByte< EM... |
TranslucencyPass |
Specifies the separate pass in which to render translucency. |
|
float |
TranslucentBackscatteringExponent |
Controls how diffuse the material's backscattering is when using the MSM_Subsurface shading model. |
|
TranslucentMultipleScatteringExtinction |
Colored extinction factor used to approximate multiple scattering in dense volumes. |
|
|
float |
TranslucentSelfShadowDensityScale |
Scale used to make translucent self-shadowing more or less opaque than the material's shadow on other objects. |
|
float |
TranslucentSelfShadowSecondDensityScale |
Used to make a second self shadow gradient, to add interesting shading in the shadow of the first. |
|
float |
TranslucentSelfShadowSecondOpacity |
Controls the strength of the second self shadow gradient. |
|
float |
TranslucentShadowDensityScale |
Scale used to make translucent shadows more or less opaque than the material's actual opacity. |
|
float |
TranslucentShadowStartOffset |
Local space distance to bias the translucent shadow. |
|
uint8: 1 |
TwoSided |
Indicates that the material should be rendered without backface culling and the normal should be flipped for backfaces. |
|
std::atomic< ui... |
UsageFlagCacheMiss |
|
|
uint32 |
UsageFlagWarnings |
True if we have printed a warning about material usage for a given usage flag. |
|
uint8: 1 |
Wireframe |
Enables a wireframe view of the mesh the material is applied to. |
Name | Description | |
---|---|---|
|
UMaterial ( |
Name | Description | ||
---|---|---|---|
|
bool |
AddExpressionParameter ( |
Add an expression node that represents a parameter to the list of material parameters. |
|
void |
AddReferencedObjects ( |
|
|
void |
AllMaterialsCacheResourceShadersForRendering ( |
For all materials, UMaterial::CacheResourceShadersForRendering. |
|
FMaterialRes... |
AllocateResource() |
|
|
void |
AssignExpressionCollection ( |
|
|
bool |
AttemptInsertNewGroupName ( |
Attempts to add a new group name to the Group Data struct. True if new name was added. |
|
void |
BackupMaterialShadersToMemory ( |
Backs up all material shaders to memory through serialization, organized by FMaterialShaderMap. |
|
void |
BuildEditorParameterList() |
Iterate through all of the expression nodes in the material and finds any parameters to put in EditorParameters. |
|
void |
CancelOutstandingCompilation() |
Cancels any currently outstanding compilation jobs for this material. |
|
bool |
CheckInValidStateForCompilation ( |
Checks that no pre-compilation errors have been detected and if so it reports them using specified compiler. |
|
void |
CompileMaterialsForRemoteRecompile ( |
Builds a map from UMaterialInterface name to the shader maps that are needed for rendering on the given platform. |
|
void |
CompileODSCMaterialsForRemoteRecompile ( |
|
|
void |
DeclareConstructClasses ( |
|
|
ExpressionTy... |
FindExpressionByGUID ( |
Attempt to find a expression by its GUID. |
|
void |
FixCommentPositions ( |
Shifts the positions of comments so that they are aligned correctly with other expressions |
|
bool |
FixFeatureLevelNodesForSM6 ( |
Fixup feature level nodes that haven't set the SM6 pin. Returns true if a fixup was needed. |
|
void |
FlipExpressionPositions ( |
Flip the X coordinates of a material's expressions and space them out more |
|
void |
GetAllCustomOutputExpressions ( |
Returns any UMaterialExpressionCustomOutput expressions |
|
void |
GetAllExpressionsForCustomInterpolators ( |
|
|
void |
GetAllExpressionsInMaterialAndFunctionsOfType ( |
Get all expressions of the requested type, recursing through any function expressions in the material |
|
void |
GetAllExpressionsOfType ( |
Get all expressions of the requested type |
|
void |
GetAllFunctionOutputExpressions ( |
Returns any UMaterialExpressionFunctionOutput expressions |
|
bool |
GetAllReferencedExpressions ( |
Get all referenced expressions (returns the chains for all properties). |
|
EBlendMode |
GetBlendModeFromString ( |
|
|
const TCHAR ... |
GetBlendModeString ( |
|
|
UMaterial &#... |
GetDefaultMaterial ( |
Return the default material, loading it if necessary |
|
TConstArrayV... |
GetEditorComments() |
|
|
const FMater... |
GetExpressionCollection() |
|
|
FMaterialExp... |
GetExpressionCollection() |
|
|
UMaterialExp... |
GetExpressionExecBegin() |
|
|
UMaterialExp... |
GetExpressionExecEnd() |
|
|
UMaterialFun... |
GetExpressionFunctionPointer ( |
|
|
bool |
GetExpressionInputDescription ( |
|
|
FExpressionI... |
GetExpressionInputForProperty ( |
Get the expression input for the given property |
|
GetExpressionLayers ( |
||
|
bool |
GetExpressionParameterName ( |
Get the name of a parameter. |
|
TConstArrayV... |
GetExpressions() |
|
|
bool |
GetExpressionsInPropertyChain ( |
Get the expression chain for the given property (ie fill in the given array with all expressions in the chain). |
|
uint32 |
GetMaterialDecalResponse() |
Returns the material's decal response mode |
|
EMaterialSha... |
GetMaterialShadingModelFromString ( |
|
|
const TCHAR ... |
GetMaterialShadingModelString ( |
Helper functions for text output of properties. |
|
TArrayView< ... |
GetRenderTracePhysicalMaterialOutputs() |
Return the array of physical materials associated with the RenderTrace material outputs. |
|
bool |
GetUsageByFlag ( |
|
|
GetUsageName ( |
||
|
bool |
HasAmbientOcclusionConnected() |
|
|
bool |
HasAnisotropyConnected() |
|
|
bool |
HasAnyExpressionsInMaterialAndFunctionsOfType() |
Checks if the material contains an expression of the requested type, recursing through any function expressions in the material |
|
bool |
HasBaseColorConnected() |
|
|
bool |
HasDisplacementConnected() |
|
|
bool |
HasDuplicateDynamicParameters ( |
Return whether the provided expression dynamic parameter has duplicates. |
|
bool |
HasDuplicateParameters ( |
Return whether the provided expression parameter has duplicates. |
|
bool |
HasEmissiveColorConnected() |
|
|
bool |
HasFlippedCoordinates() |
Checks whether a Material is arranged in the old style, with inputs flowing from right to left |
|
bool |
HasMetallicConnected() |
|
|
bool |
HasNormalConnected() |
|
|
bool |
HasPixelDepthOffsetConnected() |
|
|
bool |
HasRoughnessConnected() |
|
|
bool |
HasSpecularConnected() |
|
|
bool |
HasStrataFrontMaterialConnected() |
|
|
bool |
HasSurfaceThicknessConnected() |
|
|
bool |
HasVertexPositionOffsetConnected() |
|
|
bool |
IsCompilingOrHadCompileError ( |
Useful to customize rendering if that case (e.g. hide the object) |
|
bool |
IsDefaultMaterial() |
Returns true if the material is one of the default materials. |
|
bool |
IsDynamicParameter ( |
Return whether the provided expression node is a dynamic parameter. |
|
bool |
IsParameter ( |
Return whether the provided expression node is a parameter. |
|
bool |
IsPostProcessMaterial() |
|
|
bool |
IsPropertyActiveInDerived ( |
Like IsPropertyActive(), but considers any state overriden by DerivedMaterial |
|
bool |
IsPropertyActiveInEditor ( |
Like IsPropertyActive(), but should be used in context of editor. |
|
bool |
IsPropertyConnected ( |
|
|
bool |
IsPropertyRelevantForMobile ( |
Returns true if the material property is relevant for mobile platforms |
|
bool |
IsPropertySupported ( |
Return true if the property is supported. |
|
bool |
IsTextureForceRecompileCacheRessource ( |
|
|
bool |
IsUIMaterial() |
|
|
bool |
IsUsageFlagDirty ( |
Checks to see if the Usage flag has an annotation marking it as needing to be saved |
|
bool |
NeedsSetMaterialUsage_Concurrent ( |
Tests to see if this material needs a usage flag update |
|
void |
NotifyCompilationFinished ( |
|
|
FMaterialCom... |
OnMaterialCompilationFinished() |
|
|
void |
PostEditChangePropertyInternal ( |
|
|
FGraphEventA... |
PrecachePSOs ( |
|
|
void |
PropagateExpressionParameterChanges ( |
A parameter with duplicates has to update its peers so that they all have the same value. |
|
void |
PropagateExpressionParameterChanges ( |
A parameter with duplicates has to update its peers so that they all have the same value. |
|
void |
RebuildShadingModelField() |
Collect all material expressions fomr this material and all its functions and figure out which possible shading models exist in this material |
|
bool |
RecursiveGetExpressionChain ( |
Recursively retrieve the expressions contained in the chain of the given expression. |
|
void |
RecursiveUpdateRealtimePreview ( |
Recursively update the bRealtimePreview for each expression based on whether it is connected to something that is time-varying. |
|
void |
ReleaseResources() |
Releases rendering resources used by this material. |
|
bool |
RemoveExpressionParameter ( |
Removes an expression node that represents a parameter from the list of material parameters. |
|
void |
RestoreMaterialShadersFromMemory ( |
Recreates FShaders for FMaterialShaderMap's from the serialized data. |
|
void |
SaveShaderStableKeys ( |
|
|
bool |
SetFontParameterValueEditorOnly |
|
|
bool |
SetMaterialUsage ( |
Set the given usage flag. |
|
bool |
SetParameterValueEditorOnly ( |
|
|
void |
SetRenderTracePhysicalMaterialOutputs ( |
Set the array of physical materials associated with the RenderTrace material outputs. |
|
bool |
SetRuntimeVirtualTextureParameterValueEditorOnly ( |
|
|
bool |
SetScalarParameterValueEditorOnly ( |
|
|
void |
SetShadingModel ( |
|
|
bool |
SetSparseVolumeTextureParameterValueEditorOnly ( |
|
|
bool |
SetStaticComponentMaskParameterValueEditorOnly |
|
|
bool |
SetStaticSwitchParameterValueEditorOnly |
|
|
bool |
SetTextureParameterValueEditorOnly |
|
|
bool |
SetVectorParameterValueEditorOnly ( |
|
|
void |
UpdateCachedExpressionData() |
|
|
void |
UpdateExpressionDynamicParameters ( |
Iterate through all of the expression nodes and fix up changed properties on matching dynamic parameters when a change occurs. |
|
void |
UpdateExpressionParameterName ( |
Remove the expression from the editor parameters list (if it exists) and then re-adds it. |
|
void |
UpdateMaterialShaderCacheAndTextureReferences() |
Recompute the ddc cache key and reload the material in case the key is not the same. |
|
void |
UpdateMaterialShaders ( |
Go through every material, flush the specified types and re-initialize the material's shader maps. |
|
void |
UpdateTransientExpressionData() |
Name | Description | ||
---|---|---|---|
|
void |
CacheGivenTypesForCooking ( |
|
|
void |
CacheShaders ( |
Submits remaining shaders for recompilation. |
|
bool |
CastsRayTracedShadows() |
|
|
bool |
CheckMaterialUsage ( |
Checks if the material can be used with the given usage flag. |
|
bool |
CheckMaterialUsage_Concurrent ( |
Same as above but is valid to call from any thread. |
|
int32 |
CompilePropertyEx ( |
Allows material properties to be compiled with the option of being overridden by the material attributes input. |
|
uint32 |
ComputeAllStateCRC() |
Returns a CRC of all the Guids related to this material's shader. |
|
void |
DumpDebugInfo ( |
|
|
void |
ForceRecompileForRendering() |
Clears the shader cache and recompiles the shader for rendering. |
|
EBlendMode |
GetBlendMode() |
|
|
bool |
GetCastDynamicShadowAsMasked() |
|
|
void |
GetDependencies ( |
Get this material dependencies. |
|
void |
GetDependentFunctions ( |
|
|
FDisplacemen... |
GetDisplacementScaling() |
|
|
const UMater... |
GetEditorOnlyData() |
|
|
UMaterialEdi... |
GetEditorOnlyData() |
|
|
const UClass... |
GetEditorOnlyDataClass() |
|
|
bool |
GetGroupSortPriority ( |
Get the sort priority index of the given parameter group |
|
void |
GetLightingGuidChain |
Returns all the Guids related to this material. |
|
const UMater... |
GetMaterial() |
Get the material which we are instancing. |
|
UMaterial &#... |
GetMaterial() |
Get the material which we are instancing. |
|
const UMater... |
GetMaterial_Concurrent ( |
Same as above, but can be called concurrently |
|
void |
GetMaterialInheritanceChain ( |
|
|
bool |
GetMaterialLayers ( |
Get the material layers stack |
|
const FMater... |
GetMaterialResource ( |
Get the static permutation resource if the instance has one |
|
FMaterialRes... |
GetMaterialResource ( |
Get the static permutation resource if the instance has one |
|
float |
GetMaxWorldPositionOffsetDisplacement() |
|
|
UMaterialInt... |
GetNaniteOverride ( |
Get the associated nanite override material |
|
float |
GetOpacityMaskClipValue() |
Access to overridable properties of the base material. |
|
bool |
GetParameterValue ( |
|
|
UPhysicalMat... |
GetPhysicalMaterial() |
Return a pointer to the physical material used by this material instance. |
|
UPhysicalMat... |
GetPhysicalMaterialFromMap ( |
Return a pointer to the physical material from mask map at given index. |
|
UPhysicalMat... |
GetPhysicalMaterialMask() |
Return a pointer to the physical material mask used by this material instance. |
|
bool |
GetRefractionSettings ( |
|
|
FMaterialRen... |
GetRenderProxy() |
Return a pointer to the FMaterialRenderProxy used for rendering. |
|
void |
GetShaderTypes ( |
Gathers a list of shader types sorted by vertex factory types that should be cached for this material. |
|
FMaterialSha... |
GetShadingModels() |
|
|
USpecularPro... |
GetSpecularProfile_Internal ( |
|
|
USubsurfaceP... |
GetSubsurfaceProfile_Internal() |
|
|
bool |
GetTexturesInPropertyChain ( |
Get all of the textures in the expression chain for the given property (ie fill in the given array with all textures in the chain). |
|
void |
GetUsedTextures ( |
Return the textures used to render this material. |
|
void |
GetUsedTexturesAndIndices ( |
Return the textures used to render this material and the material indices bound to each. |
|
bool |
IsComplete() |
Checks to see if this material has all its shaders cached. |
|
bool |
IsDeferredDecal() |
|
|
bool |
IsDitheredLODTransition() |
|
|
bool |
IsMasked() |
|
|
bool |
IsPropertyActive ( |
Checks to see if an input property should be active, based on the state of the material |
|
bool |
IsShadingModelFromMaterialExpression() |
|
|
bool |
IsThinSurface() |
|
|
bool |
IsTranslucencyWritingCustomDepth() |
|
|
bool |
IsTranslucencyWritingFrontLayerTransparency() |
|
|
bool |
IsTranslucencyWritingVelocity() |
|
|
bool |
IsTwoSided() |
|
|
bool |
IterateDependentFunctions ( |
|
|
void |
LogMaterialsAndTextures ( |
Output to the log which materials and textures are used by this material. |
|
uint32 |
NumSpecularProfile_Internal() |
|
|
void |
OverrideNumericParameterDefault ( |
Overrides the default value of the given parameter (transient). |
|
void |
OverrideTexture ( |
Override a specific texture (transient) |
|
void |
RecacheUniformExpressions ( |
Re-caches uniform expressions for this material interface Set bRecreateUniformBuffer to true if uniform buffer layout will change (e.g. FMaterial is being recompiled). |
|
void |
SaveShaderStableKeysInner ( |
|
|
bool |
ShouldAlwaysEvaluateWorldPositionOffset() |
|
|
bool |
ShouldForcePlanePreview() |
True if this Material Interface should force a plane preview |
|
bool |
UpdateLightmassTextureTracking() |
Check if the textures have changed since the last time the material was serialized for Lightmass... |
|
bool |
WritesToRuntimeVirtualTexture() |
Name | Description | ||
---|---|---|---|
|
void |
BeginCacheForCookedPlatformData ( |
Starts caching of platform specific data for the target platform Called when cooking before serialization so that object can prepare platform specific data Not called during normal loading of objects |
|
void |
BeginDestroy() |
Called before destroying the object. |
|
bool |
CanEditChange ( |
Called by the editor to query whether a property of this object is allowed to be modified. |
|
void |
ClearAllCachedCookedPlatformData() |
Clear all cached cooked platform data |
|
void |
ClearCachedCookedPlatformData ( |
Clears cached cooked platform data for specific platform |
|
void |
FinishDestroy() |
Called to finish destroying the object. |
|
void |
GetAssetRegistryTags ( |
Gathers a list of asset registry searchable tags which are name/value pairs with some type information This only needs to be implemented for asset objects |
|
void |
GetResourceSizeEx ( |
Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the extended version which separates up the used memory into different memory regions (the actual definition of which may be platform specific). |
|
bool |
IsCachedCookedPlatformDataLoaded ( |
Have we finished loading all the cooked platform data for the target platforms requested in BeginCacheForCookedPlatformData |
|
bool |
IsReadyForFinishDestroy() |
Called to check if the object is ready for FinishDestroy. |
|
bool |
Modify ( |
Note that the object will be modified. |
|
void |
PostDuplicate ( |
Called after duplication & serialization and before PostLoad. |
|
void |
PostEditChangeProperty ( |
Called when a property on this object has been modified externally |
|
void |
PostInitProperties() |
Called after the C++ constructor and after the properties have been initialized, including those loaded from config. |
|
void |
PostLoad() |
Do any object-specific cleanup required immediately after loading an object. |
|
void |
PreEditChange ( |
This is called when a property is about to be modified externally |
|
void |
PreSave ( |
Presave function. |
|
void |
Serialize ( |
Handles reading, writing, and reference collecting using FArchive. |
Name | Description | ||
---|---|---|---|
|
bool |
CanBeClusterRoot() |
Called after load to determine if the object can be a cluster root |
Name |
Description |
|
---|---|---|
|
FLayersInterfaces |
|
|
FMaterialCompilationFinished |
Name |
Description |
|
---|---|---|
|
EPostEditChangeEffectOnShaders |
Name |
Description |
---|---|
MaterialCompilationFinishedEvent |
Name | Description | ||
---|---|---|---|
|
uint8: 1 |
bIsMasked_DEPRECATED |
True if Material is masked and uses custom opacity |
|
uint8: 1 |
bUsedWithUI_DEPRECATED |
Indicates that the material and its instances can be used with SlateUI and UMG This will result in the shaders required to support UI materials being compiled which will increase shader compile time and memory usage. |
|
uint8: 1 |
bUseFullPrecision_DEPRECATED |
Deprecated. |
|
TEnumAsByte< ER... |
RefractionMode_DEPRECATED |
Name | Description | ||
---|---|---|---|
|
PRAGMA_DISAB... |
PreSave ( |
Use version that takes FObjectPreSaveContext instead. |