With this function you can retrieve the name of a shader resource. You supply the unique ID value for the shader to get the name of and the function will return the name of the resource as a string.
shader_get_name(shader);
Argument | Description |
---|---|
shader | The index of the shader to get the name of. |
String
var _name = shader_get_name(shd_Water);
draw_text(32, 32, "Debug - Shader Name = " + _name);
The above code will get the name of the given shader and draw it to the screen.