set_texture_sampler_settings
Adjust an existing UTexture2D's sampler and LOD settings—address mode, filter, mip generation, LOD bias, max size, flip green—then save and verify the result.
Instructions
Sets sampler/LOD settings on an existing UTexture2D and saves it. Applies the requested fields, then PostEditChange + UpdateResource + save (no shader recompile), reading the resulting values back. Enum params accept the name with or without prefix: address_x/address_y in {Wrap,Clamp,Mirror}; filter in {Nearest,Bilinear,Trilinear,Default}; mip_gen_settings in {FromTextureGroup,SimpleAverage,NoMipmaps,LeaveExistingMips,Sharpen0..10,Blur1..5,Unfiltered,Angular}.
Returns: { texture_name, asset_path, address_x, address_y, filter, mip_gen_settings, lod_bias, max_texture_size, flip_green, changed: bool, saved: bool, *_warning?: string, save_error?: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | Optional TextureFilter enum string (Nearest/Bilinear/Trilinear/Default) | |
| lod_bias | No | Optional int LOD bias | |
| address_x | No | Optional TextureAddress enum string (Wrap/Clamp/Mirror) | |
| address_y | No | Optional TextureAddress enum string (Wrap/Clamp/Mirror) | |
| flip_green | No | Optional bool, flips the green channel | |
| texture_path | Yes | Asset path of the texture to modify | |
| max_texture_size | No | Optional int max texture size (0 = no limit) | |
| mip_gen_settings | No | Optional TextureMipGenSettings enum string |