Trying to access the height data of the landscape via CreateLandscapeInfo(); or GetLandscapeInfo(); both of them returned, but the value ComponentSizeQuads and SubsectionSizeQuads is zero,here is the code:
if (IsValid(TopCurve))
{
TopCurve->CreateLandscapeInfo();
TopCurveLandscapeInfo = TopCurve->GetLandscapeInfo();
HeightmapAccessor = MakeShareable(new FHeightmapAccessor<true>(TopCurveLandscapeInfo));
}
However, I find that the landscape edit tool can get these info properly.
Any help would be appreciate !