UDestructibleComponent::SetChunkVisible

This method makes a chunk (fractured piece) visible or invisible.

Windows
MacOS
Linux

References

Module

ApexDestruction

Header

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

Include

#include "DestructibleComponent.h"

Source

/Engine/Plugins/Runtime/ApexDestruction/Source/ApexDestruction/Private/DestructibleComponent.cpp

Syntax

void SetChunkVisible
(
    int32 ChunkIndex,
    bool bInVisible
)

Remarks

This method makes a chunk (fractured piece) visible or invisible.

Parameters

Parameter

Description

ChunkIndex

Which chunk to affect. ChunkIndex must lie in the range: 0 <= ChunkIndex < ((DestructibleMesh*)USkeletalMesh)->ApexDestructibleAsset->chunkCount().

bVisible

If true, the chunk will be made visible. Otherwise, the chunk is made invisible.

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