set_texture_settings
Update sRGB, compression, and LOD group settings for a UTexture2D, rebuild its resource if changed, save it, and return the resulting values.
Instructions
Sets the given sRGB, compression and LOD group of a UTexture2D asset, rebuilds its resource when one changed and saves it in every case, returning the values read back. An unknown compression or LOD group name is still applied, as TC_Default or TEXTUREGROUP_World, with a compression_warning or lod_group_warning.
Returns: { texture_name: string, asset_path: string, changed: bool, saved: bool, srgb: bool, compression: string, lod_group: string, compression_warning?: string, lod_group_warning?: string, save_error?: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| srgb | No | True treats the texture as sRGB color, false as linear data such as normal or mask maps; omit to keep the current value | |
| lod_group | No | TextureGroup name with or without the TEXTUREGROUP_ prefix, e.g. "World", "UI", "Character", "Effects"; omit to keep the current value | |
| texture_path | Yes | Asset path of the texture to modify | |
| compression_settings | No | TextureCompressionSettings name with or without the TC_ prefix, e.g. "Default", "Normalmap", "Masks", "VectorDisplacementmap", "BC7", "HDR"; omit to keep the current value |