help wanted ! how to generate a landscape with heightmap in C++ code or blueprint

as the title,i want to know how to generate landscape with heightmap in C++ or blueprint.please help me !!! thanks very much!!!

This is how I would do it:

  1. Find, where I can do it inside editor, like, button with name 'heightmap import"
  2. Open Unreal Editor source code
  3. Search project for “heightmap import” to find that button
  4. Follow the button code to see, how it is implemented
  5. Use this code directly, or copy/past it into my own class