获取spine动画的一些信息 您所在的位置:网站首页 derpixion所有动画名称 获取spine动画的一些信息

获取spine动画的一些信息

2024-07-12 06:18| 来源: 网络整理| 查看: 265

//skeletonData SkeletonAnimation skeletonAnimation = GetComponent(); Debug.Log(skeletonAnimation.name);//获取角色名 Debug.Log(skeletonAnimation.skeleton.bones[5].ToString()); //获取所有骨骼数组list Debug.Log(skeletonAnimation.skeleton.slots[5].ToString());//获取所有插槽数组 Debug.Log(skeletonAnimation.skeleton.data.animations[0].name.ToString());//获取所有动画数组 skeletonAnimation.skeleton.FindBone("root").flipX = true;//根据骨骼名获取骨骼 Debug.Log(skeletonAnimation.skeleton.FindBoneIndex("root").ToString());//根据骨骼名获取骨骼的index Debug.Log(skeletonAnimation.skeleton.FindSlot("torso").attachment.Name);//根据slot名获取slot Debug.Log(skeletonAnimation.skeleton.FindSlotIndex("torso").ToString());//根据slot名获取slot index Debug.Log(skeletonAnimation.skeleton.data.FindAnimation("walk").name);//根据动画名获取动画 //skin Debug.Log(skeletonAnimation.skeleton.data.skins[0].name.ToString());//获取所有 skin



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有