create_texture_2d_array
Creates a persisted UTexture2DArray asset in Unreal Engine by loading provided UTexture2D slices or generating solid-color slices, then saves it.
Instructions
Creates a persisted UTexture2DArray from slices (no external file import). If source_texture_paths is given, those UTexture2D assets are loaded into the array's SourceTextures; otherwise slice_count small solid-color slices of size x size are generated. The array Source is then built via UTexture2DArray::UpdateSourceFromSourceTextures(true) and the asset is saved. source_texture_paths is an optional array of UTexture2D asset paths used as the array's slices. Each must have a valid editor source. If omitted, slices are generated. size is the per-slice pixel size (clamped 1..2048).
Returns: { texture_array_name: string, asset_path: string, width: int, height: int, num_slices: int, format: string, created: bool, saved: bool, save_error?: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the texture-array asset to create | |
| size | No | Optional per-slice pixel size; clamped 1..2048; defaults to 64 | |
| slice_count | No | Optional number of generated slices when source_texture_paths is omitted; clamped 1..64; defaults to 2 | |
| package_path | No | Content folder; defaults to /Game/Textures | |
| source_texture_paths | No | Optional array of UTexture2D asset paths used as slices |