Navigation
API > API/Runtime > API/Runtime/GeometryFramework > API/Runtime/GeometryFramework/Components
Inheritance Hierarchy
- UMeshComponent
- IToolFrameworkComponent
- IMeshVertexCommandChangeTarget
- IMeshCommandChangeTarget
- IMeshReplacementCommandChangeTarget
- UBaseDynamicMeshComponent
- UDynamicMeshComponent
- USVGBaseDynamicMeshComponent
- UJoinedSVGDynamicMeshComponent
- USVGDynamicMeshComponent
- UOctreeDynamicMeshComponent
References
| Module | GeometryFramework |
| Header | /Engine/Source/Runtime/GeometryFramework/Public/Components/BaseDynamicMeshComponent.h |
| Include | #include "Components/BaseDynamicMeshComponent.h" |
Syntax
UCLASS (Abstract, HideCategories=(LOD), ClassGroup=Rendering, MinimalAPI)
class UBaseDynamicMeshComponent :
public UMeshComponent,
public IToolFrameworkComponent,
public IMeshVertexCommandChangeTarget ,
public IMeshCommandChangeTarget ,
public IMeshReplacementCommandChangeTarget
Remarks
UBaseDynamicMeshComponent is a base interface for a UMeshComponent based on a UDynamicMesh.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< TObjectPtr< UMaterialInterface > > | BaseMaterials | ||
| bool | bDrawSecondaryBuffers | ||
| bool | bEnableFlatShading | Flat shading support. | |
| bool | bEnableRaytracing | Raytracing support. | |
| bool | bEnableViewModeOverrides | This flag controls whether Editor View Mode Overrides are enabled for this mesh. | |
| bool | bExplicitShowWireframe | Built-in Wireframe-on-Shaded Rendering support. | |
| BlueprintGetter | |||
| BlueprintSetter | Controls whether to use the dynamic or static draw path |
Controls how distance field is computed |
| Category | |||
| EDynamicMeshComponentColorOverrideMode | ColorMode | Built-in Color Rendering Support. | |
| EDynamicMeshVertexColorTransformMode | ColorSpaceMode | Color Space Transform that will be applied to the colors stored in the DynamicMesh Attribute Color Overlay when constructing render buffers. | |
| FColor | ConstantColor | Constant Color used when Override Color Mode is set to Constant | |
| TObjectPtr< UMaterialInterface > | OverrideRenderMaterial | ||
| TObjectPtr< UMaterialInterface > | SecondaryRenderMaterial | ||
| FLinearColor | WireframeColor | Constant Color used when Override Color Mode is set to Constant |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UBaseDynamicMeshComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Whether the fast update paths will be used for the mesh. | ||
| void | ApplyTransform
(
const FTransform3d& Transform, |
Apply a transform to the mesh | |
| void | Clear any active override render material | ||
| void | Clear any active secondary render material | ||
| FBaseDynamicMeshSceneProxy * | Subclass must implement this to return scene proxy if available, or nullptr | ||
| EDynamicMeshComponentColorOverrideMode | |||
| FColor | |||
| UMaterialInterface * | |||
| UMaterialInterface * | |||
| EDynamicMeshComponentDistanceFieldMode | |||
| UDynamicMesh * | |||
| bool | |||
| bool | |||
| bool | |||
| UMaterialInterface * | GetMaterial
(
int32 ElementIndex |
||
| UMaterialInterface * | GetMaterialByName
(
FName MaterialSlotName |
||
| FMaterialRelevance | GetMaterialRelevance
(
ERHIFeatureLevel::Type InFeatureLevel |
||
| TArray< FName > | |||
| FDynamicMesh3 * | GetMesh () |
Avoid usage of this function, access via GetDynamicMesh() instead | |
| const FDynamicMesh3 * | GetMesh () |
||
| EDynamicMeshDrawPath | |||
| int32 | Standard Component interfaces | ||
| UMaterialInterface * | GetOverrideRenderMaterial
(
int MaterialIndex |
||
| bool | |||
| UMaterialInterface * | |||
| bool | |||
| void | GetUsedMaterials
(
TArray< UMaterialInterface* >& OutMaterials, |
||
| EDynamicMeshVertexColorTransformMode | |||
| bool | |||
| bool | HasOverrideRenderMaterial
(
int k |
||
| bool | |||
| void | |||
| bool | IsMaterialSlotNameValid
(
FName MaterialSlotName |
||
| void | Subclass must implement this to notify allocated proxies of updated materials | ||
| void | Call this if you update the mesh via GetMesh() | ||
| void | This will be called if a change to distance field mode is detected | ||
| void | OnRenderingStateChanged
(
bool bForceImmedateRebuild |
||
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
||
| void | ProcessMesh
(
TFunctionRef< void(const UE::Geometry::FDynamicMesh3&)> ProcessFunc |
Allow external code to read the internal mesh. | |
| void | Configure the active Color Override | ||
| void | SetConstantOverrideColor
(
FColor NewColor |
Configure the Color used with Constant Color Override Mode | |
| void | SetDefaultVertexColorMaterial
(
UMaterialInterface* Material |
Set the vertex color material used for all BaseDynamicMeshComponent-derived Components | |
| void | SetDefaultWireframeMaterial
(
UMaterialInterface* Material |
Class-wide Default Materials used for Wireframe and VertexColor display mode. | |
| void | SetDistanceFieldMode
(
EDynamicMeshComponentDistanceFieldMode NewDistFieldMode |
Configure Distance Field computation mode | |
| void | SetEnableFlatShading
(
bool bEnable |
Configure the Color used with Constant Color Override Mode | |
| void | SetEnableRaytracing
(
bool bSetEnabled |
Enable/Disable raytracing support. | |
| void | SetEnableWireframeRenderPass
(
bool bEnable |
Configure whether wireframe rendering is enabled or not | |
| void | SetMaterial
(
int32 ElementIndex, |
||
| void | SetMesh
(
UE::Geometry::FDynamicMesh3&& MoveMesh |
UBaseDynamicMeshComponent API. | |
| void | SetMeshDrawPath
(
EDynamicMeshDrawPath NewDrawPath |
Set the mesh rendering to use the static or dynamic draw path | |
| void | SetNumMaterials
(
int32 NumMaterials |
||
| void | SetOverrideRenderMaterial
(
UMaterialInterface* Material |
Override rendering material support. | |
| void | SetSecondaryBuffersVisibility
(
bool bSetVisible |
Show/Hide the secondary triangle buffers. Does not invalidate SceneProxy. | |
| void | SetSecondaryRenderMaterial
(
UMaterialInterface* Material |
Secondary Render Buffers support. | |
| void | SetShadowsEnabled
(
bool bEnabled |
API for changing Rendering settings. | |
| void | Configure the active Color Space Transform Mode | ||
| void | SetViewModeOverridesEnabled
(
bool bEnabled |
Overridden from IMeshVertexCommandChangeTarget
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyChange
(
const FMeshVertexChange* Change, |
Apply a vertex deformation change to the internal mesh (implements IMeshVertexCommandChangeTarget) |
Overridden from IMeshCommandChangeTarget
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyChange
(
const FMeshChange* Change, |
Apply a general mesh change to the internal mesh (implements IMeshCommandChangeTarget) |
Overridden from IMeshReplacementCommandChangeTarget
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyChange
(
const FMeshReplacementChange* Change, |
Apply a full mesh replacement change to the internal mesh (implements IMeshReplacementCommandChangeTarget) |
Constants
| Name | Description |
|---|---|
| DefaultVertexColorMaterial | |
| DefaultWireframeMaterial | These Materials are used by the render thread. |