UDestructibleComponent::SetChunkVisible

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

Choose your operating system:

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.