ULandscapeComponent::UpdateCollisionHeightData

Create or updates collision component height data

Windows
MacOS
Linux

References

Module

Landscape

Header

/Engine/Source/Runtime/Landscape/Classes/LandscapeComponent.h

Include

#include "LandscapeComponent.h"

Source

/Engine/Source/Runtime/Landscape/Private/LandscapeEdit.cpp

Syntax

void UpdateCollisionHeightData
(
    const FColor * HeightmapTextureMipData,
    const FColor * SimpleCollisionHeightmapTextureData,
    int32 ComponentX1,
    int32 ComponentY1,
    int32 ComponentX2,
    int32 ComponentY2,
    bool bUpdateBounds,
    const FColor * XYOffsetTextureMipData,
    bool bInUpdateHeightfieldRegion
)

Remarks

Create or updates collision component height data

Returns

True if CollisionComponent was created in this update.

Parameters

Parameter

Description

HeightmapTextureMipData

heightmap data

ComponentX1, ComponentY1, ComponentX2, ComponentY2

region to update

bUpdateBounds

Whether to update bounds from render component.

XYOffsetTextureMipData

xy-offset map data

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