# Change landscape heightmap dynamically?

**URL:** <https://forums.unrealengine.com/t/change-landscape-heightmap-dynamically/1989021>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [August 23, 2024, 2:46pm UTC](https://forums.unrealengine.com/t/change-landscape-heightmap-dynamically/1989021 "2024-08-23T14:46:15Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [August 23, 2024, 6:36pm UTC](https://forums.unrealengine.com/t/change-landscape-heightmap-dynamically/1989021/2 "2024-08-23T18:36:56Z")

</div>

> [@Procedural Landscapes - editing the heightmap in C++?](https://forums.unrealengine.com/t/procedural-landscapes-editing-the-heightmap-in-c/2880/12):
>
> I recently managed to write custom heightmap data to the Landscape using the helper class [FHeightmapAccessor](https://docs.unrealengine.com/4.27/en-US/API/Runtime/Landscape/FHeightmapAccessor/). I haven’t tried it in runtime yet though, but I think it might be possible. As a starting point, have a look at the following function, found in /Engine/Source/Editor/LandscapeEditor/Private/LandscapeEdMode.cpp bool LandscapeEditorUtils::SetHeightmapData(ALandscapeProxy\* Landscape, const TArray\<uint16\>& Data) { FIntRect ComponentsRect = Landscape-\>GetBoundingRect() + Landscape-\>Land…

---

_[View the full topic](https://forums.unrealengine.com/t/change-landscape-heightmap-dynamically/1989021)._
