UMeshComponent

Inheritance Hierarchy

Syntax

class UMeshComponent : public UPrimitiveComponent

Remarks

MeshComponent is an abstract base for any component that is an instance of a renderable collection of triangles.

Variables

Name Description

Protected variable

uint32: 1

 

bCachedMaterialParameterIndicesAreDirty

Flag whether or not the cached material parameter indices map is dirty (defaults to true, and is set from SetMaterial/Set(Skeletal)Mesh

Protected variable

TMap < FName , TA ...

 

ScalarParameterMaterialIndices

Map containing material indices for the retrieved scalar material parameter names

Protected variable

TMap < FName , TA ...

 

VectorParameterMaterialIndices

Map containing material indices for the retrieved vector material parameter names

Functions

Name Description

Protected function

void

 

CacheMaterialParameterNameIndices()

Retrieves all the (scalar/vector-)parameters from within the used materials on the SkeletalMesh, and stores material index vs parameter names

Protected function

void

 

MarkCachedMaterialParameterNameIndicesDirty()

Mark cache parameters map as dirty, cache will be rebuild once SetScalar/SetVector functions are called

Public function

void

 

SetScalarParameterValueOnMaterials

(
    const FName ParameterName,
    const float ParameterValue
)

Material parameter setting and caching Set all occurrences of Scalar Material Parameters with ParameterName in the set of materials of the SkeletalMesh to ParameterValue

Public function

void

 

SetVectorParameterValueOnMaterials

(
    const FName ParameterName,
    const FVector ParameterValue
)

Set all occurrences of Vector Material Parameters with ParameterName in the set of materials of the SkeletalMesh to ParameterValue

See Also

References

Module

Engine

Header

Runtime/Engine/Classes/Components/MeshComponent.h