Navigation
API > API/Runtime > API/Runtime/GeometryFramework > API/Runtime/GeometryFramework/Components
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- USceneComponent
- UPrimitiveComponent
- UMeshComponent
- UBaseDynamicMeshComponent
- UDynamicMeshComponent
- UOctreeDynamicMeshComponent
References
| Module | GeometryFramework |
| Header | /Engine/Source/Runtime/GeometryFramework/Public/Components/BaseDynamicMeshComponent.h |
| Include | #include "Components/BaseDynamicMeshComponent.h" |
Syntax
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. | |
| 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 | |
|---|---|---|---|
| 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 * | |||
| UDynamicMesh * | |||
| bool | |||
| bool | |||
| bool | |||
| FDynamicMesh3 * | GetMesh () |
Avoid usage of this function, access via GetDynamicMesh() instead | |
| const FDynamicMesh3 * | GetMesh () |
||
| UMaterialInterface * | GetOverrideRenderMaterial
(
int MaterialIndex |
||
| bool | |||
| UMaterialInterface * | |||
| bool | |||
| EDynamicMeshVertexColorTransformMode | |||
| bool | |||
| bool | HasOverrideRenderMaterial
(
int k |
||
| bool | |||
| void | |||
| void | Subclass must implement this to notify allocated proxies of updated materials | ||
| void | Call this if you update the mesh via GetMesh() | ||
| void | OnRenderingStateChanged
(
bool bForceImmedateRebuild |
||
| void | ProcessMesh
(
TFunctionRef< void(const UE::Geometry::FDynamicMesh3&)> ProcessFunc |
Allow external code to read the internal mesh. | |
| void | SetColorOverrideMode
(
EDynamicMeshComponentColorOverrideMode NewMode |
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 | 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 | SetMesh
(
UE::Geometry::FDynamicMesh3&& MoveMesh |
UBaseDynamicMeshComponent API. | |
| 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 | SetVertexColorSpaceTransformMode
(
EDynamicMeshVertexColorTransformMode NewMode |
Configure the active Color Space Transform Mode | |
| void | SetViewModeOverridesEnabled
(
bool bEnabled |
Overridden from UMeshComponent
| Type | Name | Description | |
|---|---|---|---|
| FMaterialRelevance | GetMaterialRelevance
(
ERHIFeatureLevel::Type InFeatureLevel |
Accesses the scene relevance information for the materials applied to the mesh. |
Overridden from UPrimitiveComponent
| Type | Name | Description | |
|---|---|---|---|
| UMaterialInterface * | GetMaterial
(
int32 ElementIndex |
Returns the material used by the element at the specified index | |
| int32 | Standard Component interfaces | ||
| void | GetUsedMaterials
(
TArray< UMaterialInterface* >& OutMaterials, |
Retrieves the materials used in this component | |
| void | SetMaterial
(
int32 ElementIndex, |
Changes the material applied to an element of the mesh. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally |
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. |