Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Components/MeshComponent.h |
Include |
#include "Components/MeshComponent.h" |
class UMeshComponent : public UPrimitiveComponent
MeshComponent is an abstract base for any component that is an instance of a renderable collection of triangles.
Name | Description | ||
---|---|---|---|
|
uint8: 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 |
|
uint8: 1 |
bEnableMaterialParameterCaching |
|
|
TSortedMap< FNa... |
MaterialParameterCache |
|
|
OverrideMaterials |
Per-Component material overrides. |
Name | Description | |
---|---|---|
|
UMeshComponent ( |
Name | Description | ||
---|---|---|---|
|
CacheMaterialParameterNameIndices() |
Retrieves all the (scalar/vector-)parameters from within the used materials on the SkeletalMesh, and stores material index vs parameter names |
|
|
CleanUpOverrideMaterials() |
Make sure the Override array is using only the space it should use. |
|
|
EmptyOverrideMaterials() |
This empties all override materials and used by editor when replacing preview mesh |
|
|
GetMaterialIndex ( |
||
|
FMaterialRel... |
GetMaterialRelevance ( |
Accesses the scene relevance information for the materials applied to the mesh. |
|
TArray< clas... |
GetMaterials() |
|
|
GetMaterialSlotNames() |
||
|
GetMaterialStreamingData ( |
Get the material info for texture stremaing. Return whether the data is valid or not. |
|
|
GetNumOverrideMaterials() |
Returns override Materials count |
|
|
float |
GetScalarParameterDefaultValue ( |
Returns default value for the parameter input. |
|
GetStreamingTextureInfoInner ( |
Generate streaming data for all materials. |
|
|
IsMaterialSlotNameValid ( |
||
|
LogMaterialsAndTextures ( |
Output to the log which materials and textures are used by this component. |
|
|
MarkCachedMaterialParameterNameIndicesDirty() |
Mark cache parameters map as dirty, cache will be rebuild once SetScalar/SetVector functions are called |
|
|
PrestreamTextures |
Tell the streaming system to start loading all textures with all mip-levels. |
|
|
SetScalarParameterValueOnMaterials ( |
Material parameter setting and caching Set all occurrences of Scalar Material Parameters with ParameterName in the set of materials of the SkeletalMesh to ParameterValue |
|
|
SetTextureForceResidentFlag ( |
Tell the streaming system whether or not all mip levels of all textures used by this component should be loaded and remain loaded. |
|
|
SetVectorParameterValueOnMaterials |
Set all occurrences of Vector Material Parameters with ParameterName in the set of materials of the SkeletalMesh to ParameterValue |
Name | Description | ||
---|---|---|---|
|
UMaterialInt... |
GetMaterial ( |
Returns the material used by the element at the specified index |
|
GetNumMaterials() |
Return number of material elements in this primitive |
|
|
GetUsedMaterials ( |
Retrieves the materials used in this component |
|
|
SetMaterial ( |
Changes the material applied to an element of the mesh. |
|
|
SetMaterialByName ( |
Changes the material applied to an element of the mesh. |
Name | Description | ||
---|---|---|---|
|
PostEditChangeChainProperty ( |
This alternate version of PostEditChange is called when properties inside structs are modified. |
Name |
Description |
|
---|---|---|
|
FMaterialParameterCache |
Struct containing information about a given parameter name |