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.

Constructors

UMRUKDestructibleMeshComponent ( ObjectInitializer )
Signature
UMRUKDestructibleMeshComponent::UMRUKDestructibleMeshComponent(const FObjectInitializer &ObjectInitializer)
Parameters
ObjectInitializer: const FObjectInitializer &

Fields

GlobalMeshMaterial : UMaterialInterface *
Material to display on the global mesh
Signature
UMaterialInterface* UMRUKDestructibleMeshComponent::GlobalMeshMaterial
OnMeshesGenerated : FOnMeshesGenerated
Signature
FOnMeshesGenerated UMRUKDestructibleMeshComponent::OnMeshesGenerated
ReservedBottom : double
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.
Signature
double UMRUKDestructibleMeshComponent::ReservedBottom
ReservedTop : double
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.
Signature
double UMRUKDestructibleMeshComponent::ReservedTop

Member Functions

BeginPlay ()
Signature
virtual void UMRUKDestructibleMeshComponent::BeginPlay() override
Returns
void
DECLARE_DYNAMIC_MULTICAST_DELEGATE ()
Signature
UMRUKDestructibleMeshComponent::DECLARE_DYNAMIC_MULTICAST_DELEGATE(FOnMeshesGenerated)
Parameters
FOnMeshesGenerated
SegmentMesh ( MeshPositions , MeshIndices , PointsPerUnitX , PointsPerUnitY , PointsPerUnitZ )
Segment the given geometry into smaller chunks. For each chunk a procedural mesh component will be spawned and attached to the owning actor.
Signature
void UMRUKDestructibleMeshComponent::SegmentMesh(const TArray< FVector > &MeshPositions, const TArray< uint32 > &MeshIndices, float PointsPerUnitX, float PointsPerUnitY, float PointsPerUnitZ)
Parameters
MeshPositions: const TArray< FVector > &  Positions of the mesh to segment
MeshIndices: const TArray< uint32 > &  Indices of the mesh to segment
PointsPerUnitX: float  The number of points per unit along the X axis
PointsPerUnitY: float  The number of points per unit along the Y axis
PointsPerUnitZ: float  The number of points per unit along the Z axis
Returns
void
TickComponent ( DeltaTime , TickType , ThisTickFunction )
Signature
virtual void UMRUKDestructibleMeshComponent::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override
Parameters
DeltaTime: float
TickType: ELevelTick
ThisTickFunction: FActorComponentTickFunction *
Returns
void