Navigation
Unreal Engine C++ API Reference > Developer > AssetTools > IAssetTools
References
Module | AssetTools |
Header | /Engine/Source/Developer/AssetTools/Public/IAssetTools.h |
Include | #include "IAssetTools.h" |
void ConvertVirtualTextures ( const [TArray](API\Runtime\Core\Containers\TArray)< [UTexture2D](API\Runtime\Engine\Engine\UTexture2D) * > & Textures, bool bConvertBackToNonVirtual, const [TArray](API\Runtime\Core\Containers\TArray)< [UMaterial](API\Runtime\Engine\Materials\UMaterial) * > * RelatedMaterials ) const
Remarks
Converts the given UTexture2D to virtual textures or converts virtual textures back to standard textures and updates the related UMaterials
Parameters
Name | Description |
---|---|
Textures | The given textures to convert. |
bConvertBackToNonVirtual | If true, virtual textures will be converted back to standard textures. |
RelatedMaterials | An optional array of materials to update after the conversion, this is useful during import when not all dependencies and caches are up to date. |