shader_get_name(shader);
参数 描述 shader The index of the shader to get the name of.
String(字符串)
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.
重要!该函数在试用版(Trial License)产品中不可用。
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.