Choose your operating system:
Windows
macOS
Linux
| UMaterialInterface::GetTextureDensity()
|
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Materials/MaterialInstance.h |
Include |
#include "Materials/MaterialInstance.h" |
Source |
/Engine/Source/Runtime/Engine/Private/Materials/MaterialInstance.cpp |
virtual float GetTextureDensity
(
FName TextureName,
const struct FMeshUVChannelInfo & UVChannelData
) const
Returns the density of a texture in (LocalSpace Unit / Texture). Used for texture streaming metrics.
The density, or zero if no data is available for this texture.
Parameter |
Description |
---|---|
TextureName |
The name of the texture to get the data for. |
UVChannelData |
The mesh UV density in (LocalSpace Unit / UV Unit). |