skeleton_skin_list


语法:

skeleton_skin_list(sprite, list);

参数 描述
sprite The sprite index of the Spine skeletal animation to get the list from.
list The ID of the DS list to populate with the animation names.


Returns:

N/A(无返回值)


描述

With this function you can populate a (pre-created) ds_list with all the names of the skins included as part of the skeletal animation sprite. The names will be strings and can then be used in the other skeleton animation skin functions for these types of sprite.

重要!该函数在试用版(Trial License)产品中可用。


例如:

var list = ds_list_create();
skeleton_skin_list(sprite_index, list);
var num = ds_list_size(list);
skeleton_skin_set(list[| irandom(num - 1));
ds_list_destroy(list);

The above code creates a DS list then populates it with the skin names. A random one is then chosen and applied to the instance before the list is destroyed.