Navigation
API > API/Plugins > API/Plugins/ModelingComponents
Description
Extract the Dimensions and image pixels from an input TextureMap By default, the "Source" texture data is read. This is only available in-Editor. At runtime, only "Platform" data is available.
| Name | UE::AssetUtils::ReadTexture |
| Type | function |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/AssetUtils/Texture2DUtil.h |
| Include Path | #include "AssetUtils/Texture2DUtil.h" |
| Source | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Private/AssetUtils/Texture2DUtil.cpp |
namespace UE
{
namespace AssetUtils
{
bool UE::AssetUtils::ReadTexture
(
UTexture2D * TextureMap,
TImageBuilder < FVector4f > & DestImageOut,
const bool bPreferPlatformData
)
}
}
true on success
Parameters
| Name | Remarks |
|---|---|
| TextureMap | the texture map to read |
| DestImageOut | the result of the texture read |
| bPreferPlatformData | if true, platform data will be returned even in-Editor. |