API reference
API reference
Select your platform
No SDKs available
No versions available

UMRUKDestructibleMeshComponent Class

Extends UProceduralMeshComponent
Destructible mesh component. Creates mesh segments for the given geometry. The segments will be created async. In addition, its possible to define areas that are indestructible.

Fields

FOnMeshesGenerated OnMeshesGenerated[Get]
Material to display on the global mesh
Area on the top of the mesh that should be indestructible. The area is given in centimeters 1.0 == 1 cm. -1.0 means no reserved area.
Area on the bottom of the mesh that should be indestructible. The area is given in centimeters 1.0 == 1 cm -1.0 means no reserved area.

Member Functions

DECLARE_DYNAMIC_MULTICAST_DELEGATE
( FOnMeshesGenerated )
UMRUKDestructibleMeshComponent
( const FObjectInitializer & ObjectInitializer )
Segment the given geometry into smaller chunks. For each chunk a procedural mesh component will be spawned and attached to the owning actor.
Parameters
MeshPositions
Positions of the mesh to segment
MeshIndices
Indices of the mesh to segment
SegmentationPoints
Points to use to determine the segments.
virtual void BeginPlay ( )
virtual void TickComponent
( float DeltaTime,
ELevelTick TickType,
FActorComponentTickFunction * ThisTickFunction )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon