Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UMaterialInterface
Description
Returns the density of a texture in (LocalSpace Unit / Texture). Used for texture streaming metrics.
Derived Overrides
| Name | GetTextureDensity |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialInterface.h |
| Include Path | #include "Materials/MaterialInterface.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Materials/MaterialInterface.cpp |
virtual float GetTextureDensity
(
FName TextureName,
const struct FMeshUVChannelInfo & UVChannelData
) const
The density, or zero if no data is available for this texture.
Parameters
| Name | Remarks |
|---|---|
| TextureName | The name of the texture to get the data for. |
| UVChannelData | The mesh UV density in (LocalSpace Unit / UV Unit). |