UBaseDynamicMeshComponent

[UBaseDynamicMeshComponent](API\Plugins\ModelingComponents\UBaseDynamicMeshComponent) is a base interface for a [UMeshComponent](API\Runtime\Engine\Components\UMeshComponent) based on a FDynamicMesh.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

ModelingComponents

Header

/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Public/BaseDynamicMeshComponent.h

Include

#include "BaseDynamicMeshComponent.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(HideCategories=(LOD, Physics, Collision), EditInlineNew, ClassGroup=Rendering)
class UBaseDynamicMeshComponent :
    public UMeshComponent,
    public IToolFrameworkComponent,
    public IMeshVertexCommandChangeTarget,
    public IMeshCommandChangeTarget,
    public IMeshReplacementCommandChangeTarget

Remarks

UBaseDynamicMeshComponent is a base interface for a UMeshComponent based on a FDynamicMesh. Currently no functionality lives here, only some interface functions are defined that various subclasses implement.

Variables

Constructors

Name Description

Public function

UBaseDynamicMeshComponent

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Virtual

void

 

ClearOverrideRenderMaterial()

Clear any active override render material

Public function Virtual

void

 

ClearSecondaryRenderMaterial()

Clear any active override render material

Public function Virtual Const

bool

 

EnableWireframeRenderPass()

Public function Virtual Const

UMaterialInt...

 

GetOverrideRenderMaterial

(
    int MaterialIndex
)

Public function Virtual Const

bool

 

GetSecondaryBuffersVisibility()

Public function Virtual Const

UMaterialInt...

 

GetSecondaryRenderMaterial()

Public function Virtual Const

bool

 

HasOverrideRenderMaterial

(
    int k
)

Public function Virtual Const

bool

 

HasSecondaryRenderMaterial()

Protected function Virtual

void

 

NotifyMaterialSetUpdated()

Subclass must implement this to notify allocated proxies of updated materials

Public function Virtual

void

 

NotifyMeshUpdated()

Call this if you update the mesh via GetMesh()

Public function Virtual

void

 

SetOverrideRenderMaterial

(
    UMaterialInterface* Material
)

Override rendering material support Set an active override render material.

Public function Virtual

void

 

SetSecondaryBuffersVisibility

(
    bool bVisible
)

Show/Hide the secondary triangle buffers. Does not invalidate SceneProxy.

Public function Virtual

void

 

SetSecondaryRenderMaterial

(
    UMaterialInterface* Material
)

Secondary buffer support Set an active override render material.

Overridden from UPrimitiveComponent

Name Description

Public function Virtual Const

UMaterialInt...

 

GetMaterial

(
    int32 ElementIndex
)

Returns the material used by the element at the specified index

Public function Virtual Const

int32

 

GetNumMaterials()

Return number of material elements in this primitive

Public function Virtual Const

void

 

GetUsedMaterials

(
    TArray< UMaterialInterface* > ...,
    bool bGetDebugMaterials
)

Retrieves the materials used in this component

Public function Virtual

void

 

SetMaterial

(
    int32 ElementIndex,
    UMaterialInterface* Material
)

Changes the material applied to an element of the mesh.

Overridden from IMeshVertexCommandChangeTarget

Name Description

Public function Virtual

void

 

ApplyChange

(
    const FMeshVertexChange* Chang...,
    bool bRevert
)

Apply a vertex deformation change to the internal mesh (implements IMeshVertexCommandChangeTarget)

Overridden from IMeshCommandChangeTarget

Name Description

Public function Virtual

void

 

ApplyChange

(
    const FMeshChange* Change,
    bool bRevert
)

Apply a general mesh change to the internal mesh (implements IMeshCommandChangeTarget)

Overridden from IMeshReplacementCommandChangeTarget

Name Description

Public function Virtual

void

 

ApplyChange

(
    const FMeshReplacementChange* ...,
    bool bRevert
)

Apply a full mesh replacement change to the internal mesh (implements IMeshReplacementCommandChangeTarget)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss