ST_Name
Updated at:
Returns the name of a material or texture object.
Syntax
cstring ST_Name(texture texture);
cstring ST_Name(material material);Parameters
| Parameter | Type | Description |
|---|---|---|
texture | texture | The texture object. |
material | material | The material object. |
Description
ST_Name retrieves the name string previously assigned to a material or texture object. Call ST_SetName to assign a name before calling this function.
Examples
Return the name of a material object:
SELECT ST_Name(ST_SetName(the_material, 'material_name'))
FROM t_tableResult:
material_nameReturn the name of a texture object:
SELECT ST_Name(ST_SetName(the_texture, 't_name'))
FROM t_tableResult:
t_nameSee also
ST_SetName — assigns a name to a material or texture object
Is this page helpful?