Announcement

Collapse
No announcement yet.

Howto set bDebrisTimeout on DestructibleMesh?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    I fixed this by moving it to BeginPlay()

    Leave a comment:


  • started a topic Howto set bDebrisTimeout on DestructibleMesh?

    Howto set bDebrisTimeout on DestructibleMesh?

    Hi there,

    In the Destructible editor, there are some timeout fields for chunks. I want the chunks forever, so while setting them to 999999, I noticed a bDebrisTimeout flag in the tooltip and documentation.

    When I set this flag = false (or 0), it crashes the editor. Which is a bummer. What is the way to set bDebrisTimeout?

    ASplodyMesh::ASplodyMesh()
    {
    PrimaryActorTick.bCanEverTick = true;

    Root = CreateDefaultSubobject<USceneComponent>(TEXT("Root"));
    SetRootComponent(Root);

    Destructible = CreateDefaultSubobject<UDestructibleComponent>(TEXT("Destructible"));
    // Don't destroy chunks via timeout.
    Destructible->GetDestructibleMesh()->DefaultDestructibleParameters.Flags.bDebrisTimeout = 0; // BOOM! same for true
    Destructible->SetupAttachment(GetRootComponent());
    }

    Thank you!

    https://docs.unrealengine.com/en-US/...lag/index.html
    https://docs.unrealengine.com/en-US/...ers/index.html
    https://docs.unrealengine.com/en-US/...esh/index.html
Working...
X