Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Using LandscapeEditorUtils:SetHeightmapData()

hello everyone, i'm new in ue programming community. I'm having problems trying to edit landscape in c ++. I have read the Unreal Engine 4 Scripting with C ++ Cookbook, which guides using LandscapeEditorUtils::SetHeightmapData function but I can not call this function because in LandscapeEditorUtils.h there is a definition:

bool LANDSCAPEEDITOR_API SetHeightmapData(AlandscapeProxy* Landscape,const TArray& Data);

I do not understand the role of the marco LANDSCAPEEDITOR_API, it makes me not call the function? How can I call this function?

Product Version: UE 4.20
more ▼

asked Nov 23 '18 at 08:22 AM in C++ Programming

avatar image

1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Link in the Landscape and LandscapeEditor APIs in your Project.Build.cs file like this: PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore", "Landscape", "LandscapeEditor" }); Then you can invoke this function according to your cookbook.

more ▼

answered Jan 27 '19 at 03:17 AM

avatar image

1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question