shader_get_name


语法:

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.