Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/AssetUtils
References
| Module | ModelingComponents |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/AssetUtils/Texture2DUtil.h |
| Include | #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
)
}
}
Remarks
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. true on success
Parameters
| Name | Description |
|---|---|
| TextureMap | the texture map to read |
| DestImageOut | the result of the texture read |
| bPreferPlatformData | if true, platform data will be returned even in-Editor. |