I’m co-developing an UE4 plugin, and need to get the heights of a landscape during runtime (during play).
The natural way seems to be going through FLandscapeComponentDataInterface::GetWorldVertex(X,Y).Z, but that is only available in editor (marked with #IF WITH_EDITOR).
I need a way to achieve the same thing, but during runtime.
I’ve come close by getting the HeightMap of the ULandscapeComponent as a FColor and reading the pixel value, but that seems very cumbersome and it feels if though I might be missing something obvious.
Note: I am not interested in modifying the landscape heights, only reading them.
If anyone got any tips, I would be really grateful.