Textures stuck on low resolution in UE 5.4

if you have python unreal scripts working, you can run this to process all the texture in your project. keep in mind that this will take a WHILE. so probably do it before you go to bed at night :slight_smile:

import unreal


# Function to update the Compression Cache ID of a texture
def update_compression_cache_id(texture):
    if isinstance(texture, unreal.Texture):
        try:
            new_compression_cache_id = unreal.Guid()
            texture.compression_cache_id = new_compression_cache_id
            texture.modify()
            texture.post_edit_change()
            unreal.EditorAssetLibrary.save_loaded_asset(texture)
            print(f"Updated Compression Cache ID for texture: {texture.get_name()}")
        except:
            print("exception")

# Get all assets in the scene
assets = unreal.EditorAssetLibrary.list_assets('/Game', recursive=True, include_folder=True)

# Iterate through all assets and find textures to update
for asset_path in assets:
    asset = unreal.EditorAssetLibrary.load_asset(asset_path)
    if isinstance(asset, unreal.Texture):
        update_compression_cache_id(asset)

3 Likes