All Products
Search
Document Center

PolarDB:ST_Name

Last Updated:Mar 28, 2026

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