texturegroup_get_names

This function returns an array containing the names of all Texture Groups contained in the game.

NOTE The texture group that GameMaker adds the fallback texture to is included. Empty texture groups may not be included as they're filtered by the asset compiler.

 

Syntax:

texturegroup_get_names();

 

Returns:

Array of String

 

Example:

var _arr_names = texturegroup_get_names();
show_debug_message("Texture Groups:\n--------------");
array_foreach(_arr_names, show_debug_message);

The above code gets the names of all texture groups using texturegroup_get_names and lists them in the debug output.