当前位置:网站首页>cocoscreator动态切换SkeletonData实现骨骼更新
cocoscreator动态切换SkeletonData实现骨骼更新
2022-06-29 00:42:00 【RemoteDev】
演示
cocoscreator动态切换SkeletonData实现骨骼更新
1.在资源管理器中添加resources文件夹,并导入girl和spineboy两个骨骼动画的资源

2.NodeSke节点中的sp.Skeleton组件中的Skeleton Data默认为gril骨骼动画中的mix-and-match-pro.json

3.实现动态加载SkeletonData并设置动画
resources.load('spineboy/spineboy-pro',sp.SkeletonData,(err,skedata)=>{
this.SkeObj.skeletonData = skedata;
this.SkeObj.setAnimation(0,'walk',true);
});
4.预览效果


边栏推荐
- 点击劫持:X-Frame-Options未配置
- Daily question 1: the number of numbers in the array 2
- SCP copy folder
- Cross domain problem of canvas drawing caused by background image cache
- Daily question 1: the number of numbers in the array
- 基于.NetCore开发博客项目 StarBlog - (13) 加入友情链接功能
- Analysis of basic structure and working principle of slip ring
- Matrix compression
- Pinhole camera with added lens
- [agile 5.1] core of planning: user stories
猜你喜欢

戴口罩人脸数据集和戴口罩人脸生成方法

Nodejs installation and download

How to calculate the income tax of foreign-funded enterprises

Leetcode daily question: implementing strstr()

10. Yolo series

The magical zero knowledge proof can not only keep secrets, but also make others believe you!

滑环的基本结构及工作原理分析

Document management.

Analysis of basic structure and working principle of slip ring

Use and principle of handlerthread
随机推荐
成功解决(机器学习分割数据问题):ModuleNotFoundError: No module named ‘sklearn.cross_validation‘
MySQL high availability dual master synchronization
oracle 去掉html标签
基于.NetCore开发博客项目 StarBlog - (13) 加入友情链接功能
This thing is called a jump watch?
滑环的基本结构及工作原理分析
Two ways to set up a single Nacos load balancing ribbon polling policy weight
单机多实例MYSQL主从复制
由背景图缓存导致的canvas绘图跨域问题
Es6:let, const, arrow functions
Haskell 配置 VS code 开发环境 (2022年6月)
Roson's QT journey 80 qurl class
MySQL 8.0 above reporting 2058 solution
Is it safe to open an account on great wisdom
If you can play these four we media operation tools, the sideline income of 6000+ is very easy
Bug risk level
Encapsulation of JDBC connection and disconnection database
运营级智慧校园系统源码 智慧校园小程序源码+电子班牌+人脸识别系统
【SV 基础】queue 的一些用法
请问同花顺上开户安全吗