Added getBoneList

This commit is contained in:
Richard Davey 2019-07-29 17:45:46 +01:00
parent 4293a444e3
commit dedab594fd

View file

@ -190,6 +190,23 @@ var SpineGameObject = new Class({
return this;
},
getBoneList: function ()
{
var output = [];
var skeletonData = this.skeletonData;
if (skeletonData)
{
for (var i = 0; i < skeletonData.bones.length; i++)
{
output.push(skeletonData.bones[i].name);
}
}
return output;
},
getAnimationList: function ()
{
var output = [];