Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UTexture2D
Description
Get the PlatformData mip data starting with the specified mip index.
prefer TryLoadMipsWithSizes
todo: deprecate this API when possible this API is also duplicated in Texture2DArray and TextureCube unify and fix them all also don't use "GetMipData" as that is the name used for TextureSource
| Name | GetMipData |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/Texture2D.h |
| Include Path | #include "Engine/Texture2D.h" |
| Source | /Engine/Source/Runtime/Engine/Private/TextureDerivedData.cpp |
void GetMipData
(
int32 FirstMipToLoad,
void ** OutMipData
)
Parameters
| Name | Remarks |
|---|---|
| FirstMipToLoad | The first mip index to cache. |
| OutMipData | Must point to an array of pointers with at least Mips.Num() - FirstMipToLoad + 1 entries. Upon return those pointers will contain mip data. |