How to change vertex data (height, material) of a landscape in real time from code (C++)?
UPD. I found a way to change the vertex height
FLandscapeEditDataInterface LandscapeEdit(LandscapeInfo);
TArray<uint16> Heights;
Heights.Add(NewHeight);
LandscapeEdit.SetHeightData(X0, Y0, X1, Y1, Heights.GetData(), 0, true);
LandscapeEdit.Flush();
The height changes, but the collision does not update. How can I update the collision in real time?