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 (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

Name Description

Protected variable

TArray < UMateri ...

 

BaseMaterials

Protected variable

bool

 

bDrawSecondaryBuffers

Protected variable

UMaterialInterf ...

 

OverrideRenderMaterial

Protected variable

UMaterialInterf ...

 

SecondaryRenderMaterial

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 )

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback