ST_Name

更新时间: 2026-03-28 05:12:54

Returns the name of a material or texture object.

Syntax

cstring ST_Name(texture texture);
cstring ST_Name(material material);

Parameters

ParameterDescription
textureThe texture object.
materialThe material object.

Description

ST_Name returns the name set on a material or texture object by ST_SetName.

Call ST_SetName before calling ST_Name. The function returns only the name configured by ST_SetName.

Examples

Example 1: Get the name of a material object.

SELECT ST_Name(ST_SetName(the_material, 'material_name'))
FROM t_table

-------------------
material_name

Example 2: Get the name of a texture object.

SELECT ST_Name(ST_SetName(the_texture, 't_name'))
FROM t_table

-------------------
t_name

See also

上一篇: ST_Type 下一篇: ST_SetName
阿里云首页 云原生数据库 PolarDB 相关技术圈