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 |
|
|
TObjectPtr< cla... |
OverlayMaterial |
Translucent material to blend on top of this mesh. |
|
float |
OverlayMaterialMaxDrawDistance |
The max draw distance for overlay material. |
|
OverrideMaterials |
Per-Component material overrides. |
Name | Description | |
---|---|---|
|
UMeshComponent ( |
Name | Description | ||
---|---|---|---|
|
void |
CacheMaterialParameterNameIndices() |
Retrieves all the (scalar/vector-)parameters from within the used materials on the SkeletalMesh, and stores material index vs parameter names |
|
void |
CleanUpOverrideMaterials() |
Make sure the Override array is using only the space it should use. |
|
void |
EmptyOverrideMaterials() |
This empties all override materials and used by editor when replacing preview mesh |
|
int32 |
GetMaterialIndex ( |
|
|
FMaterialRel... |
GetMaterialRelevance ( |
Accesses the scene relevance information for the materials applied to the mesh. |
|
TArray< clas... |
GetMaterials() |
|
|
GetMaterialSlotNames() |
||
|
bool |
GetMaterialStreamingData ( |
Get the material info for texture streaming. Return whether the data is valid or not. |
|
int32 |
GetNumOverrideMaterials() |
Returns override materials count |
|
UMaterialInt... |
GetOverlayMaterial() |
Get the overlay material used by this instance |
|
float |
GetScalarParameterDefaultValue ( |
Returns default value for the parameter input. |
|
void |
GetStreamingTextureInfoInner ( |
Generate streaming data for all materials. |
|
bool |
HasOverrideMaterials() |
Returns true if there are any override materials set for this component |
|
bool |
IsMaterialSlotNameValid ( |
|
|
void |
LogMaterialsAndTextures ( |
Output to the log which materials and textures are used by this component. |
|
void |
MarkCachedMaterialParameterNameIndicesDirty() |
Mark cache parameters map as dirty, cache will be rebuild once SetScalar/SetVector functions are called |
|
void |
PrestreamTextures ( |
Tell the streaming system to start loading all textures with all mip-levels. |
|
void |
RegisterLODStreamingCallback ( |
Register a one-time callback that will be called when criteria met |
|
void |
SetOverlayMaterial ( |
Change the overlay material used by this instance |
|
void |
SetOverlayMaterialMaxDrawDistance ( |
Change the overlay material max draw distance used by this instance |
|
void |
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 |
|
void |
SetTextureForceResidentFlag ( |
Tell the streaming system whether or not all mip levels of all textures used by this component should be loaded and remain loaded. |
|
void |
SetVectorParameterValueOnMaterials ( |
Set all occurrences of Vector Material Parameters with ParameterName in the set of materials of the SkeletalMesh to ParameterValue |
|
bool |
UseNaniteOverrideMaterials() |
Determines if we use the nanite overrides from any materials |
Name | Description | ||
---|---|---|---|
|
UMaterialInt... |
GetMaterial ( |
Returns the material used by the element at the specified index |
|
int32 |
GetNumMaterials() |
Return number of material elements in this primitive |
|
void |
GetUsedMaterials ( |
Retrieves the materials used in this component |
|
void |
SetMaterial ( |
Changes the material applied to an element of the mesh. |
|
void |
SetMaterialByName ( |
Changes the material applied to an element of the mesh. |
Name | Description | ||
---|---|---|---|
|
void |
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 |