Navigation
API > API/Runtime > API/Runtime/Landscape > API/Runtime/Landscape/ULandscapeComponent
References
Module | Landscape |
Header | /Engine/Source/Runtime/Landscape/Classes/LandscapeComponent.h |
Include | #include "LandscapeComponent.h" |
Source | /Engine/Source/Runtime/Landscape/Private/LandscapeEdit.cpp |
void GenerateHeightmapMips
&40;
TArray< FColor &42; > & HeightmapTextureMipData,
int32 ComponentX1,
int32 ComponentY1,
int32 ComponentX2,
int32 ComponentY2,
FLandscapeTextureDataInfo &42; TextureDataInfo
&41;
Remarks
Generate mipmaps for height and tangent data.
Parameters
Name | Description |
---|---|
HeightmapTextureMipData | array of pointers to the locked mip data. This should only include the mips that are generated directly from this component's data ie where each subsection has at least 2 vertices. |
ComponentX1 | region of texture to update in component space, MAX_int32 meant end of X component in ALandscape::Import() |
ComponentY1 | region of texture to update in component space, MAX_int32 meant end of Y component in ALandscape::Import() |
ComponentX2 | (optional) - region of texture to update in component space |
ComponentY2 | (optional) - region of texture to update in component space |
TextureDataInfo | FLandscapeTextureDataInfo pointer, to notify of the mip data region updated. |