UDestructibleMesh

Holds an APEX destructible asset as well as an associated [USkeletalMesh](API\Runtime\Engine\Engine\USkeletalMesh).

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

ApexDestruction

Header

/Engine/Plugins/Runtime/ApexDestruction/Source/ApexDestruction/Public/DestructibleMesh.h

Include

#include "DestructibleMesh.h"

Syntax

UCLASS (HideCategories=(Object, Mesh, LevelOfDetail, Mirroring, Physics, Reimport, Clothing),
       MinimalAPI)
class UDestructibleMesh : public USkeletalMesh

Remarks

Holds an APEX destructible asset as well as an associated USkeletalMesh .

Variables

Name Description

Public variable

FDestructiblePa ...

 

DefaultDestructibleParameters

Parameters controlling the destruction behavior.

Public variable

TArray < UStatic ...

 

FractureChunkMeshes

Array of static meshes to build the fracture chunks from

Public variable

TArray < struct ...

 

FractureEffects

Fracture effects for each fracture level, unless overridden in the component.

Public variable UProperty

UDestructibleFr ...

 

FractureSettings

Information used to author an NxDestructibleAsset

Public variable UProperty Transient

FDateTime

 

SourceSMImportTimestamp

Timestamp of the source static meshes last import at the time this destruction mesh has been generated.

Public variable UProperty

UStaticMesh ...

 

SourceStaticMesh

Static mesh this destructible mesh is created from. Is nullptr if not created from a static mesh

Constructors

Name Description

Public function

UDestructibleMesh

(
    const FObjectInitializer & ObjectIn...
)

Functions

Name Description

Public function

bool

 

BuildFractureSettingsFromStaticMesh

(
    UStaticMesh * StaticMesh
)

Imports FractureSettings data from a StaticMesh

Public function

bool

 

BuildFromStaticMesh

(
    UStaticMesh & StaticMesh
)

Initializes this DestructibleMesh from a StaticMesh.

Public function

void

 

CreateFractureSettings()

Create DestructibleFractureSettings for this DestructibleMesh if it doesn't have one.

Public function

void

 

LoadDefaultDestructibleParametersFromApexAsset()

Fills DefaultDestructibleParameters with parameters from the NxDestructibleAsset.

Public function

bool

 

SetupChunksFromStaticMeshes

(
    const TArray < UStaticMesh * >&...
)

Initialized this DestructibleMesh from the StaticMesh it was created from and the passed in ChunkMeshes to build the level 1 chunks from.

Overridden from USkeletalMesh

Name Description

Public function Virtual Const

bool

 

HasCustomActorFactory()

This is a bit hacky.

Public function Virtual Const

bool

 

HasCustomActorReimportFactory()

This is a bit hacky.

Overridden from UObject

Name Description

Public function Virtual

void

 

FinishDestroy()

Called to finish destroying the object.

Public function Virtual

void

 

PostLoad()

Do any object-specific cleanup required immediately after loading an object.

Public function Virtual

void

 

PreEditChange

(
    FProperty * PropertyAboutToChan...
)

This is called when a property is about to be modified externally

Public function Virtual

void

 

Serialize

(
    FArchive & Ar
)

Handles reading, writing, and reference collecting using FArchive .

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