ST_SetName

更新时间:
复制 MD 格式

Sets a name for a material or texture object.

Syntax

texture ST_SetName(texture texture, cstring name);
material ST_SetName(material material,cstring name);

Two overloaded variants are available: one for texture objects and one for material objects.

Parameters

ParameterDescription
materialThe material object.
textureThe texture object.
nameThe name to assign to the object.

Examples

Set a name on a material object and retrieve it using ST_Name:

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

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

Set a name on a texture object:

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

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