editor.texture
Texture asset introspection and modification
← API Reference
editor.texture.getInfo
Returns core information about a Texture2D asset: dimensions, format, mip count, compression, sRGB, memory size.
| Name | Type | Required | Description |
path | string | Yes | Asset path of the texture |
Returns
| Field | Type | Description |
name | string | Texture name |
asset_path | string | Full asset path |
size_x | number | Texture width in pixels |
size_y | number | Texture height in pixels |
num_mips | number | Number of mip levels |
pixel_format | string | Pixel format (e.g. "PF_DXT5", "PF_BC7") |
compression | string | Compression setting name |
lod_group | string | LOD group name |
srgb | bool | Whether sRGB is enabled |
virtual_texture_streaming | bool | Whether virtual texture streaming is enabled |
memory_size_bytes | number | Estimated GPU memory size in bytes |
max_texture_size | number | Max texture size override (0 = no override) |
Example Request
{
"jsonrpc": "2.0", "id": 1, "method": "editor.texture.getInfo",
"params": { "path": "/Game/Textures/T_Hero_D.T_Hero_D" }
}
Example Response
{
"jsonrpc": "2.0", "id": 1,
"result": {
"name": "T_Hero_D",
"asset_path": "/Game/Textures/T_Hero_D.T_Hero_D",
"size_x": 2048,
"size_y": 2048,
"num_mips": 12,
"pixel_format": "PF_DXT5",
"compression": "Default",
"lod_group": "World",
"srgb": true,
"virtual_texture_streaming": false,
"memory_size_bytes": 5592405,
"max_texture_size": 0
}
}
editor.texture.getSettings
Returns all editable texture settings: compression, LOD group, filter, address mode, sRGB, streaming.
| Name | Type | Required | Description |
path | string | Yes | Asset path of the texture |
Returns
| Field | Type | Description |
name | string | Texture name |
asset_path | string | Full asset path |
compression | string | Compression setting name |
lod_group | string | LOD group name |
filter | string | Texture filter (Default, Nearest, Bilinear, Trilinear) |
address_x | string | X address mode (Wrap, Clamp, Mirror) |
address_y | string | Y address mode (Wrap, Clamp, Mirror) |
srgb | bool | Whether sRGB is enabled |
virtual_texture_streaming | bool | Whether VT streaming is enabled |
lod_bias | number | LOD bias value |
max_texture_size | number | Max texture size override |
never_stream | bool | Whether streaming is disabled |
Example Request
{
"jsonrpc": "2.0", "id": 1, "method": "editor.texture.getSettings",
"params": { "path": "/Game/Textures/T_Hero_D.T_Hero_D" }
}
editor.texture.setCompression
Changes the compression setting of a texture. Triggers texture rebuild.
| Name | Type | Required | Description |
path | string | Yes | Asset path of the texture |
compression | string | Yes | New compression setting (case-insensitive) |
Valid compression values: Default, Normalmap, Masks, Grayscale, Displacementmap, VectorDisplacementmap, HDR, EditorIcon, Alpha, DistanceFieldFont, HDR_Compressed, BC7, HalfFloat, LQ, SingleFloat, HDR_F32
Returns
| Field | Type | Description |
success | bool | Whether the change succeeded |
path | string | Asset path |
old_compression | string | Previous compression setting |
new_compression | string | New compression setting |
Example Request
{
"jsonrpc": "2.0", "id": 1, "method": "editor.texture.setCompression",
"params": { "path": "/Game/Textures/T_Hero_N.T_Hero_N", "compression": "Normalmap" }
}
editor.texture.setLODGroup
Changes the LOD group (texture group) of a texture. Affects streaming and mip generation.
| Name | Type | Required | Description |
path | string | Yes | Asset path of the texture |
lod_group | string | Yes | New LOD group name (case-insensitive) |
Common LOD group values: World, WorldNormalMap, WorldSpecular, Character, CharacterNormalMap, CharacterSpecular, Weapon, Vehicle, Cinematic, Effects, EffectsNotFiltered, Skybox, UI, Lightmap, RenderTarget, Shadowmap, Pixels2D, HierarchicalLOD
Returns
| Field | Type | Description |
success | bool | Whether the change succeeded |
path | string | Asset path |
old_lod_group | string | Previous LOD group |
new_lod_group | string | New LOD group |
Example Request
{
"jsonrpc": "2.0", "id": 1, "method": "editor.texture.setLODGroup",
"params": { "path": "/Game/Textures/T_Hero_D.T_Hero_D", "lod_group": "Character" }
}
editor.texture.setSRGB
Sets or clears the sRGB flag on a texture. Affects how the texture is sampled in shaders.
| Name | Type | Required | Description |
path | string | Yes | Asset path of the texture |
srgb | bool | Yes | Whether to enable sRGB (true) or disable it (false) |
Returns
| Field | Type | Description |
success | bool | Whether the change succeeded |
path | string | Asset path |
old_srgb | bool | Previous sRGB state |
new_srgb | bool | New sRGB state |
Example Request
{
"jsonrpc": "2.0", "id": 1, "method": "editor.texture.setSRGB",
"params": { "path": "/Game/Textures/T_Hero_N.T_Hero_N", "srgb": false }
}
Example Response
{
"jsonrpc": "2.0", "id": 1,
"result": {
"success": true,
"path": "/Game/Textures/T_Hero_N.T_Hero_N",
"old_srgb": true,
"new_srgb": false
}
}
editor.texture.setMaxSize
Sets the maximum texture resolution override. The engine will downscale the texture to this size at cook time. Set to 0 to remove the override.
| Name | Type | Required | Description |
path | string | Yes | Asset path of the texture |
max_size | number | Yes | Max texture size (0 = no limit, or power of 2: 32-8192) |
Valid max_size values: 0 (no limit), 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192
Returns
| Field | Type | Description |
success | bool | Whether the change succeeded |
path | string | Asset path |
old_max_size | number | Previous max size (0 = no limit) |
new_max_size | number | New max size |
Example Request
{
"jsonrpc": "2.0", "id": 1, "method": "editor.texture.setMaxSize",
"params": { "path": "/Game/Textures/T_Hero_D.T_Hero_D", "max_size": 1024 }
}
Example Response
{
"jsonrpc": "2.0", "id": 1,
"result": {
"success": true,
"path": "/Game/Textures/T_Hero_D.T_Hero_D",
"old_max_size": 0,
"new_max_size": 1024
}
}