UDynamicMeshComponent::SetDeferredCollisionUpdatesEnabled

Set value of bDeferCollisionUpdates, when enabled, collision is not automatically recomputed each time the mesh changes.

Choose your operating system:

Windows

macOS

Linux

References

Module

GeometryFramework

Header

/Engine/Source/Runtime/GeometryFramework/Public/Components/DynamicMeshComponent.h

Include

#include "Components/DynamicMeshComponent.h"

Source

/Engine/Source/Runtime/GeometryFramework/Private/Components/DynamicMeshComponent.cpp

Syntax

void SetDeferredCollisionUpdatesEnabled
(
    bool bEnabled,
    bool bImmediateUpdate
)

Remarks

Set value of bDeferCollisionUpdates, when enabled, collision is not automatically recomputed each time the mesh changes.

Parameters

Parameter

Description

bImmediateUpdate

if true, UpdateCollision(true) is called if bEnabled=false, ie to force a collision rebuild