当前位置:网站首页>Cocoscrreator dynamically switches skeletondata to update bones
Cocoscrreator dynamically switches skeletondata to update bones
2022-06-29 00:54:00 【RemoteDev】
demonstration
cocoscreator Dynamic switching SkeletonData Realize bone update
1. Add... In Explorer resources Folder , And import girl and spineboy Two bone animation resources

2.NodeSke Nodes in the sp.Skeleton In the component Skeleton Data The default is gril In bone animation mix-and-match-pro.json

3. Implement dynamic loading SkeletonData And animate
resources.load('spineboy/spineboy-pro',sp.SkeletonData,(err,skedata)=>{
this.SkeObj.skeletonData = skedata;
this.SkeObj.setAnimation(0,'walk',true);
});
4. Preview effect


边栏推荐
- EasyCVR播放视频出现卡顿花屏时如何解决?
- GUI Graphical user interface programming example - color selection box
- 架构实战营|模块5
- PR 2021 quick start tutorial, how to use audio editing in PR?
- 卷绕工艺与叠片工艺的对比
- Operation level smart campus system source code smart campus applet source code + electronic class card + face recognition system
- Reprint: VTK notes - clipping and segmentation - 3D curve or geometric cutting volume data (black mountain old demon)
- Daily practice: delete duplicates in the ordered array
- What is redis
- [MCU club] design of GSM version of range hood based on MCU [physical design]
猜你喜欢

Depth first search to realize the problem of catching cattle

使用.Net驱动Jetson Nano的OLED显示屏

戴口罩人脸数据集和戴口罩人脸生成方法
![[image denoising] matlab code for removing salt and pepper noise based on fast and effective multistage selective convolution filter](/img/7b/f9cea5dfe6831f5f226b907e2095eb.jpg)
[image denoising] matlab code for removing salt and pepper noise based on fast and effective multistage selective convolution filter
How does the JVM bottom layer implement synchronized
![[eight part essay] MySQL](/img/8e/719149fb49f1850baf5bab343955bf.jpg)
[eight part essay] MySQL

狼人杀休闲游戏微信小程序模板源码/微信小游戏源码

cocoscreator动态切换SkeletonData实现骨骼更新

盘点 6 月 yyds 的开源项目!
![[image registration] improved SAR image registration based on sar-sift with matlab code](/img/69/4e78c6cef45b2e4d133222a4372e43.jpg)
[image registration] improved SAR image registration based on sar-sift with matlab code
随机推荐
【火灾检测】基于matlab GUI森林火灾检测系统(带面板)【含Matlab源码 1921期】
[eight part essay] MySQL
[image detection] recognition of the front and back of a coin based on texture features with matlab code attached
基于.NetCore开发博客项目 StarBlog - (13) 加入友情链接功能
【架构师(第三十八篇)】 服务端开发之本地安装最新版 MySQL 数据库
be based on. NETCORE development blog project starblog - (13) add friendship link function
[MCU club] design of classroom number detection based on MCU [physical design]
Two ways to set up a single Nacos load balancing ribbon polling policy weight
Mapbox GL loading local publishing DEM data
接雨水系列问题
Reprint: VTK notes - clipping and segmentation - irregular closed loop clipping -vtkselectpolydata class (black mountain old demon)
请问同花顺上开户安全吗
Cross domain problem of canvas drawing caused by background image cache
Structure of the actual combat battalion | module 5
【UVM】我的 main_phase 都跑完了,为啥 case 无法退出?太不讲道理!
Baidu online disk login verification prompt: unable to access this page, or the QR code display fails, the pop-up window shows: unable to access this page, ensure the web address....
[UVM] my main_ Why can't the case exit when the phase runs out? Too unreasonable!
【温度检测】基于matlab GUI热红外图像温度检测系统【含Matlab源码 1920期】
Analysis of basic structure and working principle of slip ring
手下两个应届生:一个踏实喜欢加班,一个技术强挑活,怎么选??