set_asset_compression
Set High, Medium, or Low compression quality on a texture asset and save it to disk; non-texture assets return success:false.
Instructions
Sets the REAL texture compression quality (UTexture::CompressionQuality) on a texture asset and saves it to disk. Only UTexture targets are supported (no engine-level "compression" concept exists for meshes/materials); non-texture assets fail honestly with success:false.
Returns: { asset_path: string, compression_type: string, asset_type: string, original_file_size_bytes: number, original_file_size_mb: number, is_texture: bool, compression_quality_applied?: string, current_compression_settings?: string, pixel_format?: string, width?: number, height?: number, mip_count?: number, saved: bool, success: bool, message: string, error?: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset_path | Yes | The path to the asset in the asset registry. | |
| compression_type | Yes | The compression quality to apply: 'High', 'Medium', or 'Low' (case-insensitive). Maps to TCQ_High / TCQ_Medium / TCQ_Low. Any other value is a hard error. |