timeline_get_name( ind );
Argument | Description |
---|---|
ind | The index of the time line to check the name of. |
Returns: String
This function can be used to get the name of a time line as a
string. if the time line has been created dynamically using the
timeline_add function, the
name returned will have the format "__newtimelineN" where
"N" is the number of the time line (starting from 0). Please
note that this is only a string and cannot be used to
reference the timeline directly - for that you would need the
timeline index. You can, however, use this string to get the
timeline index using the returned string along with the
function asset_get_index().
str = timeline_get_name(global.tl);
The above code will store the name of the time line indexed in the variable "global.tl".